From 8069592714205c0b4dd2282b25445fc39ae5bf53 Mon Sep 17 00:00:00 2001
From: Florian Pose <fp@igh-essen.com>
Date: Thu, 6 Sep 2007 09:23:56 +0000
Subject: [PATCH] Fixed bug on big-endian systems (cpu_to_le32 -> cpu_to_le64).

---
 include/ecrt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/ecrt.h b/include/ecrt.h
index 9a90db99..feda8859 100644
--- a/include/ecrt.h
+++ b/include/ecrt.h
@@ -325,7 +325,7 @@ int ecrt_slave_pdo_mapping(ec_slave_t *, ec_direction_t, unsigned int, ...);
 #define EC_WRITE_U32(DATA, VAL) \
     do { \
         *((uint32_t *) (DATA)) = (uint32_t) (VAL); \
-        cpu_to_le16s(DATA); \
+        cpu_to_le32s(DATA); \
     } while (0)
 
 /**
-- 
GitLab