author | etisserant |
Fri, 25 Apr 2008 16:48:34 +0200 | |
changeset 449 | 85f6acbb9d54 |
parent 448 | 732c33c2d8a7 |
child 450 | dff8cc600cba |
--- 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__ */