Fixed horrible typo in states.c thanks to Martin Hollenweger.
--- a/src/states.c Mon Dec 17 15:55:40 2007 +0100
+++ b/src/states.c Mon Dec 17 18:14:42 2007 +0100
@@ -267,12 +267,12 @@
if(offset){
/* Adjust COB-ID Client->Server (rx) only id already set to default value*/
- if(*(UNS32*)d->objdict[offset].pSubindex[1].pObject = 0x600 + *d->bDeviceNodeId){
+ if(*(UNS32*)d->objdict[offset].pSubindex[1].pObject == 0x600 + *d->bDeviceNodeId){
/* cob_id_client = 0x600 + nodeId; */
*(UNS32*)d->objdict[offset].pSubindex[1].pObject = 0x600 + nodeId;
}
/* Adjust COB-ID Server -> Client (tx) only id already set to default value*/
- if(*(UNS32*)d->objdict[offset].pSubindex[2].pObject = 0x580 + *d->bDeviceNodeId){
+ if(*(UNS32*)d->objdict[offset].pSubindex[2].pObject == 0x580 + *d->bDeviceNodeId){
/* cob_id_server = 0x580 + nodeId; */
*(UNS32*)d->objdict[offset].pSubindex[2].pObject = 0x580 + nodeId;
}