Fixed bug on big-endian systems (cpu_to_le32 -> cpu_to_le64).
authorFlorian Pose <fp@igh-essen.com>
Thu, 06 Sep 2007 09:23:56 +0000
changeset 707 9ae68af8e17a
parent 706 2db7128713fc
child 708 90bdb315f560
Fixed bug on big-endian systems (cpu_to_le32 -> cpu_to_le64).
include/ecrt.h
--- a/include/ecrt.h	Thu Sep 06 09:21:33 2007 +0000
+++ b/include/ecrt.h	Thu Sep 06 09:23:56 2007 +0000
@@ -325,7 +325,7 @@
 #define EC_WRITE_U32(DATA, VAL) \
     do { \
         *((uint32_t *) (DATA)) = (uint32_t) (VAL); \
-        cpu_to_le16s(DATA); \
+        cpu_to_le32s(DATA); \
     } while (0)
 
 /**