# HG changeset patch # User etisserant # Date 1209134914 -7200 # Node ID 85f6acbb9d543be771320922da3ffc7b149a1cc2 # Parent 732c33c2d8a788bab8ad01a544a5fc6f38feee60 Some more Endianess fixes. diff -r 732c33c2d8a7 -r 85f6acbb9d54 include/objdictdef.h --- a/include/objdictdef.h Fri Apr 25 12:18:23 2008 +0200 +++ b/include/objdictdef.h Fri Apr 25 16:48:34 2008 +0200 @@ -118,7 +118,7 @@ /************************** MACROS *********************************/ /* CANopen usefull helpers */ -#define GET_NODE_ID(m) (m.cob_id & 0x7f) -#define GET_FUNCTION_CODE(m) (m.cob_id >> 7) +#define GET_NODE_ID(m) (UNS16_LE(m.cob_id) & 0x7f) +#define GET_FUNCTION_CODE(m) (UNS16_LE(m.cob_id) >> 7) #endif /* __objdictdef_h__ */