# HG changeset patch # User frdupin # Date 1170667351 -3600 # Node ID 074126d73842ddd203e39976373967e5a3697be0 # Parent 683702a46416c1ceab30c3692adb7403281754a4 little/big endian and nodeId diff -r 683702a46416 -r 074126d73842 src/sdo.c --- a/src/sdo.c Tue Jan 30 11:18:20 2007 +0100 +++ b/src/sdo.c Mon Feb 05 10:22:31 2007 +0100 @@ -352,7 +352,7 @@ Message m; UNS8 i; UNS32 * pwCobId = NULL; - UNS8 * pwNodeId = NULL; + UNS32 * pwNodeId = NULL; MSG_WAR(0x3A38, "sendSDO",0); if( !((d->nodeState == Operational) || (d->nodeState == Pre_operational ))) { @@ -443,7 +443,8 @@ UNS8 line; UNS8 nbBytes; /* received or to be transmited. */ UNS8 nodeId = 0; /* The node from which the SDO is received */ - UNS8 *pNodeId = NULL; + UNS32 nodeId_32; /* node id in 32 bits, for temporary use */ + UNS32 *pNodeId = NULL; UNS8 whoami = SDO_UNKNOWN; /* SDO_SERVER or SDO_CLIENT.*/ UNS32 errorCode; /* while reading or writing in the local object dictionary.*/ s_SDO sdo; /* SDO to transmit */ @@ -495,7 +496,8 @@ /* b) cobid found, so reading the node id of the server. */ pNodeId = d->objdict[offset].pSubindex[3].pObject; whoami = SDO_CLIENT; - nodeId = *pNodeId; + nodeId_32 = *pNodeId; + nodeId = (UNS8)nodeId_32; MSG_WAR(0x3A64, "proceedSDO. I am server. index : ", 0x1280 + j); MSG_WAR(0x3A65, " Server nodeId : ", nodeId); break;