Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: prompt.cpp
- Revision:
- 61:06e77dff6f00
- Parent:
- 60:b4ec6beb3be3
- Child:
- 62:07e5bdc9f8f7
diff -r b4ec6beb3be3 -r 06e77dff6f00 prompt.cpp --- a/prompt.cpp Fri Oct 24 15:52:12 2014 +0000 +++ b/prompt.cpp Fri Oct 24 16:38:47 2014 +0000 @@ -853,6 +853,20 @@ pflood = 1; flood_timeout.start(); } + + if (xmemmatch( (uint8_t*)(debug_buf+6), (uint8_t*) "more", 4 ) ){ + miss_match = false; + pc.printf("\n\rFlood ON\n\r"); + if( from_eth ){ + snprintf( debug_buf, __PROMPT_ETH_BUFFER_SIZE__, "Flood On\n\r" ); + //debug_buf[ strlen( debug_buf ) - 1 ] = '\0'; + } + tflood.start(); + tflood.reset(); + floodcount = 0; + pflood = 1; + } + if (xmemmatch( (uint8_t*)(debug_buf+6), (uint8_t*) "off", 3 )) { miss_match = false; pc.printf("\n\rFlood OFF\n\r");