diff -r f138b759026f -r c9d01296d6d9 src/states.c --- a/src/states.c Wed Apr 23 14:12:08 2008 +0200 +++ b/src/states.c Thu Apr 24 14:08:34 2008 +0200 @@ -255,14 +255,12 @@ /* Adjust COB-ID Client->Server (rx) only id already set to default value or id not valid (id==0xFF)*/ 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 = 0x600 + nodeId; } /* 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 = 0x580 + nodeId; } }