# HG changeset patch # User Mongo # Date 1332854997 -7200 # Node ID 0b33d9cdbdeb5b8e5cc2cc930d8a3f9c869ba38c # Parent cfb4f62f35afe4946f347e10962d131560ad5d83 Fixed : wrong parameter size diff -r cfb4f62f35af -r 0b33d9cdbdeb examples/TestMasterSlaveLSS/Master.c --- a/examples/TestMasterSlaveLSS/Master.c Tue Mar 27 15:16:26 2012 +0200 +++ b/examples/TestMasterSlaveLSS/Master.c Tue Mar 27 15:29:57 2012 +0200 @@ -132,7 +132,7 @@ case 2: /* Second step : Set the new heartbeat producer time in the slave */ { UNS32 Master_Cons_Heartbeat_T=Master_Cons_Heartbeat_Base + (nodeId * 0x10000); - UNS8 size = sizeof(UNS32); + UNS32 size = sizeof(UNS32); eprintf("Master : set slave %2.2x Producer Heartbeat Time = %d\n", nodeId,Slave_Prod_Heartbeat_T); res = writeNetworkDictCallBack (d, /*CO_Data* d*/ @@ -214,7 +214,7 @@ if(dat1==0){ UNS8 LSS_mode=LSS_WAITING_MODE; UNS32 SINC_cicle=50000;// us - UNS8 size = sizeof(UNS32); + UNS32 size = sizeof(UNS32); /* The slaves are now configured (nodeId and Baudrate) via the LSS services. * Switch the LSS state to WAITING and restart the slaves. */