# HG changeset patch # User etisserant # Date 1192085489 -7200 # Node ID 3586cfa84705fd20a9385812700ab7e993f0889a # Parent db803c81f19f9e6a616e68bf84b1906de3c13c88 Fixed incoherency with idx 0x1280+n sidx 3 in sdo.c against newly generated objectditcs (UNS32*->UNS8*). diff -r db803c81f19f -r 3586cfa84705 src/sdo.c --- a/src/sdo.c Fri Oct 05 17:58:04 2007 +0200 +++ b/src/sdo.c Thu Oct 11 08:51:29 2007 +0200 @@ -503,7 +503,7 @@ Message m; UNS8 i; UNS32 * pwCobId = NULL; - UNS32 * pwNodeId = NULL; + UNS8 * pwNodeId = NULL; MSG_WAR(0x3A38, "sendSDO",0); if( !((d->nodeState == Operational) || (d->nodeState == Pre_operational ))) { @@ -537,7 +537,7 @@ MSG_ERR(0x1A28, "Subindex 3 not found at index ", 0x1280 + sdoNum); return 0xFF; } - pwNodeId = (UNS32*) d->objdict[offset].pSubindex[3].pObject; + pwNodeId = (UNS8*) d->objdict[offset].pSubindex[3].pObject; MSG_WAR(0x3A44, "Found nodeId server = ", *pwNodeId); if(*pwNodeId == sdo.nodeId) { found = 1;