![](/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:
- 115:a1e1e2e60a2c
- Parent:
- 114:472502b31a12
- Child:
- 116:39a41ebb675c
--- a/prompt.cpp Mon Apr 20 14:40:09 2015 +0000 +++ b/prompt.cpp Thu Apr 23 13:57:54 2015 +0000 @@ -1020,6 +1020,34 @@ } + else if( xstrmatch( (uint8_t*)debug_buf, (uint8_t*) "drp" ) ){ + miss_match = false; + drop_registry_pkg = !drop_registry_pkg; + if ( drop_registry_pkg ) + { + debug_msg ("registrys pkgs from cbx will be droped"); + } + else + { + debug_msg ("registrys pkgs from cbx don't will be droped"); + } + + } + + else if( xstrmatch( (uint8_t*)debug_buf, (uint8_t*) "rafc" ) ){ + miss_match = false; + received_audio_from_cb = !received_audio_from_cb; + if ( received_audio_from_cb ) + { + debug_msg ("audio pkgs from cbx will printed"); + } + else + { + debug_msg ("audio pkgs from cbx don't will printed"); + } + + } + else if( xstrmatch( (uint8_t*)debug_buf, (uint8_t*) "dap" ) ){ miss_match = false; drop_ack_pkg = !drop_ack_pkg; @@ -1045,10 +1073,8 @@ { debug_msg ("rtp pkgs from ast don't will be droped"); } - } - else if( xstrmatch( (uint8_t*)debug_buf, (uint8_t*) "drfc" ) ){ miss_match = false; drop_rtp_from_cbx_pkg = !drop_rtp_from_cbx_pkg; @@ -1059,8 +1085,12 @@ else { debug_msg ("rtp pkgs from cbx don't will be droped"); - } - + } + } + + else if( xstrmatch( (uint8_t*)debug_buf, (uint8_t*) "uptime" ) ) { + miss_match = false; + send_msg(" %d", uptime ); } else if( xstrmatch( (uint8_t*)debug_buf, (uint8_t*) "ftq" ) ){