diff -r a28fc90dc23e -r 396839c5d70f examples/TestMasterSlaveLSS/Master.c --- a/examples/TestMasterSlaveLSS/Master.c Thu Feb 09 20:39:46 2012 +0100 +++ b/examples/TestMasterSlaveLSS/Master.c Wed Jun 13 19:07:41 2012 +0200 @@ -41,7 +41,7 @@ { UNS32 PDO1_COBID = 0x0182; UNS32 PDO2_COBID = 0x0183; - UNS8 size = sizeof(UNS32); + UNS32 size = sizeof(UNS32); eprintf("TestMaster_initialisation\n"); @@ -78,7 +78,7 @@ { UNS32 abortCode; if(getWriteResultNetworkDict (d, nodeId, &abortCode) != SDO_FINISHED) - eprintf("Master : Failed in initializing slave %2.2x, step %d, AbortCode :%4.4x \n", nodeId, init_step, abortCode); + eprintf("Master : Failed in initializing slave %2.2x, AbortCode :%4.4x \n", nodeId, abortCode); /* Finalise last SDO transfer with this node */ closeSDOtransfer(&TestMaster_Data, nodeId, SDO_CLIENT); @@ -126,12 +126,13 @@ 1, /*UNS8 count*/ 0, /*UNS8 dataType*/ &Transmission_Type,/*void *data*/ - CheckSDOAndContinue); /*SDOCallback_t Callback*/ + CheckSDOAndContinue, /*SDOCallback_t Callback*/ + 0); /*UNS8 useBlockMode*/ break; 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*/ @@ -141,7 +142,8 @@ 2, /*UNS8 count*/ 0, /*UNS8 dataType*/ &Slave_Prod_Heartbeat_T,/*void *data*/ - CheckSDOAndContinue); /*SDOCallback_t Callback*/ + CheckSDOAndContinue, /*SDOCallback_t Callback*/ + 0); /*UNS8 useBlockMode*/ break; /* Set the new heartbeat consumer time in the master*/ @@ -212,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. */