diff -r 8b67289d50b5 -r 6fecf36df407 src/lifegrd.c --- a/src/lifegrd.c Fri Jan 25 12:00:38 2008 +0100 +++ b/src/lifegrd.c Fri Jan 25 19:01:58 2008 +0100 @@ -36,6 +36,7 @@ #include "lifegrd.h" #include "canfestival.h" #include "dcf.h" +#include "sysdep.h" void ConsumerHearbeatAlarm(CO_Data* d, UNS32 id); @@ -101,7 +102,8 @@ if (nodeId == *d->bDeviceNodeId ) { Message msg; - msg.cob_id = *d->bDeviceNodeId + 0x700; + UNS16 tmp = *d->bDeviceNodeId + 0x700; + msg.cob_id = UNS16_LE(tmp); msg.len = (UNS8)0x01; msg.rtr = 0; msg.data[0] = d->nodeState; @@ -177,8 +179,8 @@ ** (decimal) and additionaly ** the node-id of this device. */ - - msg.cob_id = *d->bDeviceNodeId + 0x700; + UNS16 tmp = *d->bDeviceNodeId + 0x700; + msg.cob_id = UNS16_LE(tmp); msg.len = (UNS8)0x01; msg.rtr = 0; msg.data[0] = d->nodeState; /* No toggle for heartbeat !*/