Fixed horrible typo in states.c thanks to Martin Hollenweger.
authoretisserant
Mon, 17 Dec 2007 18:14:42 +0100
changeset 345 62d6b770a85f
parent 344 da65cf699839
child 346 59dbdcc99264
Fixed horrible typo in states.c thanks to Martin Hollenweger.
src/states.c
--- 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;
     }