Skip to content
Snippets Groups Projects
Commit 80695927 authored by Florian Pose's avatar Florian Pose
Browse files

Fixed bug on big-endian systems (cpu_to_le32 -> cpu_to_le64).

parent cdd5ad4d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment