src/sdo.c
changeset 306 3586cfa84705
parent 217 94c3f89bc3cc
child 311 adf4a929cf8b
--- 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;