# HG changeset patch # User Christian Taedcke # Date 1337945079 -7200 # Node ID 121da23e97d8e3411ce387ccb124784dc4b4e6d4 # Parent d1f47159c1a42a130281818175fff09579339ece Win32 win32test: - fixed wrong size parameter of call to writeLocalDict() to set remote node id. diff -r d1f47159c1a4 -r 121da23e97d8 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]="";