![](/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
debug.cpp
- Committer:
- klauss
- Date:
- 2014-10-20
- Revision:
- 48:195c97f12e8e
- Parent:
- 21:0bd688722e81
- Child:
- 74:81c47fff88a5
File content as of revision 48:195c97f12e8e:
#include "debug.h" #include "string.h" #include "prompt.h" UDPSocket debug; Endpoint debug_server; char debug_msg1[ 1024+64 ]; char debug_msg2[ 1024 ]; char msg_[ 1024 ]; void debug_pkg( int size, uint8_t * pkg ){ if (debug_alive == 1){ static uint8_t i=0; strcpy( debug_msg1, "Pkg " ); memcpy( debug_msg1+5, pkg, size ); debug_msg1[ 4 ] = i++; debug.sendTo( debug_server, debug_msg1, size+5 ); }else {} }