# HG changeset patch # User etisserant # Date 1206973108 -7200 # Node ID 39ea9e1b8354e541528a3036520a4fe0a122b399 # Parent 129bbe0504e48627937ecbddf83b8c8afd3c7f3e Fixed endianizarion problems diff -r 129bbe0504e4 -r 39ea9e1b8354 src/states.c --- a/src/states.c Mon Mar 31 16:17:44 2008 +0200 +++ b/src/states.c Mon Mar 31 16:18:28 2008 +0200 @@ -256,13 +256,13 @@ if((*(UNS32*)d->objdict[offset].pSubindex[1].pObject == 0x600 + *d->bDeviceNodeId)||(*d->bDeviceNodeId==0xFF)){ /* cob_id_client = 0x600 + nodeId; */ UNS32 tmp = 0x600 + nodeId; - *(UNS32*)d->objdict[offset].pSubindex[1].pObject = UNS32_LE(tmp); + *(UNS32*)d->objdict[offset].pSubindex[1].pObject = UNS32(tmp); } /* Adjust COB-ID Server -> Client (tx) only id already set to default value or id not valid (id==0xFF)*/ if((*(UNS32*)d->objdict[offset].pSubindex[2].pObject == 0x580 + *d->bDeviceNodeId)||(*d->bDeviceNodeId==0xFF)){ /* cob_id_server = 0x580 + nodeId; */ UNS32 tmp = 0x580 + nodeId; - *(UNS32*)d->objdict[offset].pSubindex[2].pObject = UNS32_LE(tmp); + *(UNS32*)d->objdict[offset].pSubindex[2].pObject = UNS32(tmp); } }