![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: vz_protocol.cpp
- Revision:
- 58:af7e8788f106
- Parent:
- 48:195c97f12e8e
- Child:
- 63:0d95da692bb4
--- a/vz_protocol.cpp Thu Oct 23 17:18:58 2014 +0000 +++ b/vz_protocol.cpp Thu Oct 23 19:58:09 2014 +0000 @@ -26,7 +26,24 @@ if( cb_buffer == NULL ) return( NULL ); - if( cb_buffer[ 6 ] == __FLOOD__ ) { + /* + if( cb_buffer[ 6 ] == __TELEMETRY__ ){ + if( debug_telemetry ){ + pc.printf("\n\r Original package\n\r"); + pc.printf("\n\r 1. "); + uint8_t count = 2; + for( register int i = 0; i < __CB_BUFFER_SIZE__; i++ ){ + if( i > 0 && !( i % 15 ) ) pc.printf("\n\r%2i. ", count++ ); + pc.printf("%3x ", cb_buffer[ i ] ); + } + pc.printf("\n\r"); + + if( tcp_session ) tcp_client.send_all( ( char *)cb_buffer, __CB_BUFFER_SIZE__ ); + } + } + */ + + if( cb_buffer[ 6 ] == __FLOOD__ ) { static uint8_t flood_cnt = 0; static uint8_t first_run_flag = 0; static Timer t;