![](/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:
- 4:de46f0d9b14d
- Parent:
- 0:4d17cd9c8f9d
- Child:
- 14:22a35f575502
--- a/vz_protocol.cpp Wed Sep 10 18:21:48 2014 +0000 +++ b/vz_protocol.cpp Thu Sep 11 14:23:47 2014 +0000 @@ -82,6 +82,11 @@ //__print_clock__( pkg + 8 ); pkg[ __TIMESLICE_PLACE__ ] = cb_buffer[ __TIMESLICE_PLACE__ ]; fill = __TIMESLICE_PLACE__ + 1; + }else if( type == __TELEMETRY__ ){ + pkg[ 7 ] = seq_num; + __print_clock__( pkg + 8 ); + pkg[ __TIMESLICE_PLACE__ ] = cb_buffer[ __TIMESLICE_PLACE__ ]; + fill = __TIMESLICE_PLACE__ + 1; } for( register int i = fill; i < __CB_BUFFER_SIZE__; i++ ) pkg[ i ] = 0x00; @@ -116,7 +121,6 @@ } uint8_t * __write_eth_buffer__( uint8_t * dest, uint8_t * src ){ - for( register int i = 0; i < __ETH_BUFFER_SIZE__; i++ ) *dest++ = *src++; return( dest );