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: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Revision 61:06e77dff6f00, committed 2014-10-24
- Comitter:
- klauss
- Date:
- Fri Oct 24 16:38:47 2014 +0000
- Parent:
- 60:b4ec6beb3be3
- Child:
- 62:07e5bdc9f8f7
- Commit message:
- flood more implementado
Changed in this revision
| prompt.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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");
