Win32 win32test:
authorChristian Taedcke <hacking@taedcke.com>
Fri, 25 May 2012 13:24:39 +0200
changeset 733 121da23e97d8
parent 732 d1f47159c1a4
child 734 4ae82d76e183
Win32 win32test:
- fixed wrong size parameter of call to writeLocalDict() to set remote node id.
examples/win32test/main.c
--- 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]="";