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:
- 23:4a6d631a6298
- Parent:
- 21:0bd688722e81
- Child:
- 31:bb5fb28a77df
--- a/vz_protocol.cpp Sat Sep 20 20:43:33 2014 +0000 +++ b/vz_protocol.cpp Sat Sep 20 20:56:13 2014 +0000 @@ -1,4 +1,5 @@ #include "vz_protocol.h" +#include "prompt.h" extern DigitalOut led2; extern DigitalOut led3; @@ -104,7 +105,7 @@ } uint8_t * __build_cb_package__( int ext, int port, uint8_t type, char * cb_buffer, uint8_t seq_num, int length, uint8_t * pkg ){ - debug_msg(""); + if (debug_alive == 1) debug_msg(""); pkg[ 0 ] = ( uint8_t )( ( ext & 0xFF00 ) >> 8 ); pkg[ 1 ] = ( uint8_t )( ext & 0x00FF ); pkg[ 2 ] = ( uint8_t )( ( port & 0xFF00 ) >> 8 ); @@ -154,7 +155,7 @@ pkg[ 4 ] =( uint8_t )( ( cc & 0xFF00 ) >> 8) ; pkg[ 5 ] =( uint8_t )( cc & 0x00FF ); - debug_msg(""); + if(debug_alive == 1) debug_msg(""); return pkg; }