# HG changeset patch # User Daniele Nicolodi # Date 1351523607 -3600 # Node ID 8e6a2ec8516942ffccd98fd1ab20ce2421040ac4 # Parent 07caeaeb5b88f5a04c5fbb81637e10b55b3c996b Fix byte order in AD9956 DDS driver diff -r 07caeaeb5b88 -r 8e6a2ec85169 DDS_Fox.c --- a/DDS_Fox.c Mon Oct 29 15:04:34 2012 +0100 +++ b/DDS_Fox.c Mon Oct 29 16:13:27 2012 +0100 @@ -435,5 +435,5 @@ // 64 bits integer unsigned long long x = fraction; for (int i = 0; i < 6; i++) - octets[5 - i] = (unsigned char)((x >> (i * 8)) & 0xFF); + octets[i] = (unsigned char)((x >> (i * 8)) & 0xFF); }