# HG changeset patch # User etisserant # Date 1208788743 -7200 # Node ID 9a7f7bc82257cd4a498c27eac6c8da1a7d63bba1 # Parent 994c99afb3444695275f5c8286fb748f43e36ee4 Reverted back states.c to 1.29. diff -r 994c99afb344 -r 9a7f7bc82257 src/states.c --- a/src/states.c Mon Apr 21 16:37:27 2008 +0200 +++ b/src/states.c Mon Apr 21 16:39:03 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 = tmp; + *(UNS32*)d->objdict[offset].pSubindex[1].pObject = UNS32_LE(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 = tmp; + *(UNS32*)d->objdict[offset].pSubindex[2].pObject = UNS32_LE(tmp); } }