![](/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: utils.cpp
- Revision:
- 30:8dfb6d8de53d
- Parent:
- 29:7246460b73f8
- Child:
- 31:bb5fb28a77df
diff -r 7246460b73f8 -r 8dfb6d8de53d utils.cpp --- a/utils.cpp Wed Sep 24 18:02:18 2014 +0000 +++ b/utils.cpp Thu Sep 25 14:37:02 2014 +0000 @@ -1,4 +1,5 @@ #include "utils.h" +#include "prompt.h" void reverse( char str[], int length ){ int start = 0; @@ -122,14 +123,13 @@ cb = (Call_Box * )v_cb->get_element( i ); if( cb->is_timeout() ){ if( cb->reconfigure_timeout() == 0x00 ){ - // debug_msg("( ext %d removed", cb->get_ext() ); - //cb->unregistry(); - //v_cb->remove_element( i ); - //delete( cb ); + if( debug_alive ) debug_msg("( ext %d removed )", cb->get_ext() ); + cb->unregistry(); + v_cb->remove_element( i ); + delete( cb ); break; }else{ - // debug_msg("Ping on %d", cb->get_ext() ); - + debug_msg("Ping on %d", cb->get_ext() ); cb->set_msg_id( ( ( cb->get_msg_id() ) + 1 ) & ( BIT7 ^ 0xff ) ); __send_to_cb__( __build_cb_package__( cb->get_ext(), cb->get_port(), __REGISTRY__, ( char * )data, cb->get_msg_id(), __CB_BUFFER_SIZE__ - __VZ_HEADER_OFFSET__, write_buffer ) );