Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: main.cpp
- Revision:
- 80:61d61c9eb75c
- Parent:
- 79:9bc12aa305a9
- Child:
- 81:3656f00ab3db
diff -r 9bc12aa305a9 -r 61d61c9eb75c main.cpp --- a/main.cpp Tue Dec 16 16:50:25 2014 +0000 +++ b/main.cpp Tue Dec 16 19:34:30 2014 +0000 @@ -103,6 +103,8 @@ init_telemetry_handler(); + init_refresh(); + init_aging(); static uint8_t count = 0; @@ -474,6 +476,7 @@ if( debug_main ) debug_msg("Added CBx -- %d", ext ); } cb->registry(); + //FIXME mandar um pacote do tipo 2 pro cbx telemetry_counter++; if( debug_telemetry ) send_msg("::Telemetry from %d - %d::", ext, port ); build_telemetry_report( ext, port, ( char *)data ); @@ -547,6 +550,8 @@ }else if( debug_main ) debug_msg("received missed package from CBx :: %i -- Type :: %i", ext, type ); } } + if( v_call->size() == 0 ) refresh( v_cb, buffer, write_buffer, NULL ); + //if( v_call->size() == 0 ) registry_aging( v_cb, buffer, write_buffer ); //Fixme pensar melhor nessa parte durante ligacoes, pode complicar com muitos cbx ...