Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
29:7246460b73f8
Parent:
28:94aec56c6329
Child:
30:8dfb6d8de53d
diff -r 94aec56c6329 -r 7246460b73f8 utils.cpp
--- a/utils.cpp	Tue Sep 23 18:28:37 2014 +0000
+++ b/utils.cpp	Wed Sep 24 18:02:18 2014 +0000
@@ -212,7 +212,7 @@
 void call_manager( Vector * v_call, Vector * v_cb, uint8_t * data, uint8_t * write_buffer, Timeslice * ts ){
     for( register int i = 0; i < v_call->size(); i++ ){
         VZ_call * call = ( VZ_call * )v_call->get_element( i );
-        if( call->is_timeout() || call->is_timetofinish() ){
+        if( call->is_timetofinish() ){
             v_call->remove_element( i );
             Call_Box * cb = __find_CB__( v_cb, call->get_cb_ext() );
             if( cb ){ 
@@ -225,6 +225,7 @@
                     ( char * )data, cb->get_msg_id(), __CB_BUFFER_SIZE__ - __VZ_HEADER_OFFSET__, write_buffer ) );
                 cb->send_bye();
                 set_status( cb->sip->status, sip_idle );
+                cb->re_start_timer();
             }
             delete( call );    
         }