![](/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: prompt.cpp
- Revision:
- 22:d2a4b5939115
- Parent:
- 21:0bd688722e81
- Child:
- 24:270b436a1bb0
diff -r 0bd688722e81 -r d2a4b5939115 prompt.cpp --- a/prompt.cpp Sat Sep 20 20:28:24 2014 +0000 +++ b/prompt.cpp Sat Sep 20 20:43:33 2014 +0000 @@ -6,7 +6,8 @@ #include "flood.h" //#include "debug.h" -uint8_t debug_alive = 0; +uint8_t debug_alive = 1; +uint8_t pcks_s = 0; #define PVERSION 1 // Sempre atualizar a versao do prompt @@ -320,7 +321,9 @@ __send_to_cb__( __build_cb_package__( ext, port, __PROMPT__, debug_buf+9+ant1+2+ant2, id_msg++, __CB_BUFFER_SIZE__ - __VZ_HEADER_OFFSET__, write_buffer ) ); pc.printf("\n\rComando enviado\n\r"); } - + if( xmemmatch( (uint8_t*)debug_buf, (uint8_t*) "cks",3 )) { + pcks_s = 1; + } if( xstrmatch( (uint8_t*)debug_buf, (uint8_t*) "help" )) { pc.printf("\n\r****************************PROMPT HELP******************\n\r");