![](/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:
- 72:895ca792c647
- Parent:
- 67:cdedc64d9921
- Child:
- 74:81c47fff88a5
--- a/prompt.cpp Mon Nov 17 13:44:53 2014 +0000 +++ b/prompt.cpp Wed Nov 19 13:36:33 2014 +0000 @@ -23,6 +23,7 @@ uint8_t debug_eth_tx = 0; uint8_t debug_prompt_eth = 0; uint8_t debug_file = 0; +bool dparallel = false; bool dbl = false; bool from_eth = false; bool udp_request = false; @@ -1053,6 +1054,27 @@ } } + else if( xmemmatch( (uint8_t*)debug_buf, (uint8_t*) "dparallel ", 10 ) ){ + if( xmemmatch( ( uint8_t * )( debug_buf + 10 ), ( uint8_t * )"on", 2 ) ){ + miss_match = false; + pc.printf( "\n\rParallel Write Debug ON\n\r" ); + if( from_eth ){ + snprintf( debug_buf, __PROMPT_ETH_BUFFER_SIZE__, "\n\rParallel Write Debug ON\n\r" ); + debug_buf[ strlen( debug_buf ) - 1 ] = '\0'; + } + dparallel = true; + } + if( xmemmatch( ( uint8_t * )( debug_buf + 10 ), ( uint8_t *)"off", 3 )) { + miss_match = false; + pc.printf( "\n\rParallel Write Debug OFF\n\r" ); + if( from_eth ){ + snprintf( debug_buf, __PROMPT_ETH_BUFFER_SIZE__, "\n\rParallel Write Debug OFF\n\r" ); + debug_buf[ strlen( debug_buf ) - 1 ] = '\0'; + } + dparallel = false; + } + } + else if( xmemmatch( (uint8_t*)debug_buf, (uint8_t*) "dtelemetry ", 11 ) ){ if (xmemmatch( (uint8_t*)(debug_buf + 11 ), (uint8_t*) "on",2 ) ){ miss_match = false;