src/states.c
changeset 314 68e83c3ffbb5
parent 303 340348f0193f
child 320 f82e758840bd
equal deleted inserted replaced
313:fed411af774a 314:68e83c3ffbb5
   286 	      *(UNS32*)d->objdict[offset].pSubindex[1].pObject = cobID[i] + nodeId;
   286 	      *(UNS32*)d->objdict[offset].pSubindex[1].pObject = cobID[i] + nodeId;
   287       i ++;
   287       i ++;
   288       offset ++;
   288       offset ++;
   289     }
   289     }
   290   }
   290   }
       
   291 
       
   292   /* Update EMCY COB-ID if already set to default*/
       
   293   if(*d->error_cobid == *d->bDeviceNodeId + 0x80)
       
   294     *d->error_cobid = nodeId + 0x80;
       
   295 
   291   /* bDeviceNodeId is defined in the object dictionary. */
   296   /* bDeviceNodeId is defined in the object dictionary. */
   292   *d->bDeviceNodeId = nodeId;
   297   *d->bDeviceNodeId = nodeId;
   293 }
   298 }
   294 
   299 
   295 void _initialisation(){}
   300 void _initialisation(){}