Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface NTPClient mbed-rtos_old mbed
Fork of header_main_public 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 );
