@@ -132,7 +132,7 @@ static const char* vscp_tp_adapter_protocolTypes[] =
132132 /* 12 */ "Enter Boot Loader Mode" ,
133133 /* 13 */ "Enter Boot Loader Mode ACK" ,
134134 /* 14 */ "Enter Boot Loader Mode NACK" ,
135- /* 15 */ "Start Block Data Transfer " ,
135+ /* 15 */ "Start Block" ,
136136 /* 16 */ "Block Data" ,
137137 /* 17 */ "Block Data ACK" ,
138138 /* 18 */ "Block Data NACK" ,
@@ -167,8 +167,11 @@ static const char* vscp_tp_adapter_protocolTypes[] =
167167 /* 47 */ "Reserved" ,
168168 /* 48 */ "Activate New Image ACK" ,
169169 /* 49 */ "Activate New Image NACK" ,
170- /* 50 */ "Start Block Data Transfer ACK" ,
171- /* 51 */ "Start Block Data Transfer NACK"
170+ /* 50 */ "Start Block ACK" ,
171+ /* 51 */ "Start Block NACK" ,
172+ /* 52 */ "Block Chunk ACK" ,
173+ /* 53 */ "Block Chunk NACK" ,
174+ /* 54 */ "Boot Loader Check"
172175};
173176
174177/** User friendly strings for VSCP helper library function return status. */
@@ -250,8 +253,6 @@ static const char* vscp_tp_adapter_errorStr[] =
250253extern void vscp_tp_adapter_init (void )
251254{
252255 /* Nothing to do */
253-
254- return ;
255256}
256257
257258/**
@@ -290,6 +291,20 @@ extern BOOL vscp_tp_adapter_readMessage(vscp_RxMessage * const msg)
290291 LOG_WARNING_INT32 ("Couldn't receive event: " , vscphlpRet );
291292 LOG_WARNING_STR ("vscphlp_receiveEventEx failed: " , vscp_tp_adapter_getErrorStr (vscphlpRet ));
292293 }
294+ /* Any simulated message available? */
295+ else if (TRUE == vscp_tp_adapter_messageReceived )
296+ {
297+ * msg = vscp_tp_adapter_rxMessage ;
298+
299+ vscp_tp_adapter_messageReceived = FALSE;
300+
301+ status = TRUE;
302+ }
303+ else
304+ {
305+ /* Nothing to do. */
306+ ;
307+ }
293308 }
294309 /* Handle all level 1 events? */
295310 else if (VSCP_TP_ADAPTER_LVL_1 == client -> lvl )
@@ -318,17 +333,13 @@ extern BOOL vscp_tp_adapter_readMessage(vscp_RxMessage * const msg)
318333 status = TRUE;
319334 }
320335 }
336+ else
337+ {
338+ /* Skip it. */
339+ ;
340+ }
321341 }
322342 }
323- /* Any simulated message available? */
324- else if (TRUE == vscp_tp_adapter_messageReceived )
325- {
326- * msg = vscp_tp_adapter_rxMessage ;
327-
328- vscp_tp_adapter_messageReceived = FALSE;
329-
330- status = TRUE;
331- }
332343
333344 if (FALSE != status )
334345 {
@@ -677,8 +688,6 @@ extern void vscp_tp_adapter_disconnect(void)
677688 }
678689
679690 vscp_tp_adapter_isConnected = FALSE;
680-
681- return ;
682691}
683692
684693/**
@@ -690,7 +699,6 @@ extern void vscp_tp_adapter_simulateReceivedMessage(vscp_RxMessage const * const
690699{
691700 vscp_tp_adapter_rxMessage = * msg ;
692701 vscp_tp_adapter_messageReceived = TRUE;
693- return ;
694702}
695703
696704/*******************************************************************************
@@ -851,8 +859,6 @@ static void vscp_tp_adapter_showMessage(vscp_Message const * const msg, BOOL isR
851859 }
852860
853861 printf ("\n" );
854-
855- return ;
856862}
857863
858864/**
0 commit comments