changeset 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 07caeaeb5b88
children 1dfaf5ef0352
files DDS_Fox.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);
 }