--- a/examples/win32test/main.c Tue May 22 09:33:39 2012 +0200
+++ b/examples/win32test/main.c Fri May 25 13:24:39 2012 +0200
@@ -161,12 +161,13 @@
/* modify Client SDO 1 Parameter */
UNS32 COB_ID_Client_to_Server_Transmit_SDO = 0x600 + node_id;
UNS32 COB_ID_Server_to_Client_Receive_SDO = 0x580 + node_id;
- UNS32 Node_ID_of_the_SDO_Server = node_id;
- UNS32 ExpectedSize = sizeof (UNS32);
+ UNS8 Node_ID_of_the_SDO_Server = node_id;
+ UNS32 ExpectedSize = sizeof(UNS32);
+ UNS32 ExpectedSizeNodeId = sizeof (UNS8);
if (OD_SUCCESSFUL == writeLocalDict(&win32test_Data, 0x1280, 1, &COB_ID_Client_to_Server_Transmit_SDO, &ExpectedSize, RW)
&& OD_SUCCESSFUL == writeLocalDict(&win32test_Data, 0x1280, 2, &COB_ID_Server_to_Client_Receive_SDO, &ExpectedSize, RW)
- && OD_SUCCESSFUL == writeLocalDict(&win32test_Data, 0x1280, 3, &Node_ID_of_the_SDO_Server, &ExpectedSize, RW))
+ && OD_SUCCESSFUL == writeLocalDict(&win32test_Data, 0x1280, 3, &Node_ID_of_the_SDO_Server, &ExpectedSizeNodeId, RW))
{
UNS32 dev_type = 0;
char device_name[64]="";