Fixed incoherency with idx 0x1280+n sidx 3 in sdo.c against newly generated objectditcs (UNS32*->UNS8*).
authoretisserant
Thu, 11 Oct 2007 08:51:29 +0200
changeset 306 3586cfa84705
parent 305 db803c81f19f
child 307 230d55cb75a4
Fixed incoherency with idx 0x1280+n sidx 3 in sdo.c against newly generated objectditcs (UNS32*->UNS8*).
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;