src/states.c
changeset 345 62d6b770a85f
parent 343 118c1cabd0b0
child 349 1e6dd4ef46b9
--- 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;
     }