diff DDS_Fox.c @ 72:8e6a2ec85169

Fix byte order in AD9956 DDS driver
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Mon, 29 Oct 2012 16:13:27 +0100
parents 64a7a1d3d75c
children e5ad3ed47d2c
line wrap: on
line diff
--- 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);
 }