Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
124:c1b6c893e1c3
Parent:
123:1d395b5a4cad
Child:
126:1f90756250fb
diff -r 1d395b5a4cad -r c1b6c893e1c3 main.cpp
--- a/main.cpp	Mon May 11 19:21:39 2015 +0000
+++ b/main.cpp	Wed May 13 14:25:57 2015 +0000
@@ -17,6 +17,12 @@
     
     while( true )
     {    
+        if ( show_hello_status )
+        {
+            show_hello_status_function ();
+            show_hello_status = false;    
+        }
+        
         if( v_cb->size() > max_registered_cbx ) max_registered_cbx = v_cb->size();
 
         if ( sync_timer.read() > 5 )
@@ -43,6 +49,12 @@
             if ( debug_missed ) { missed_send_udp_pkg = true; }
 
         }
+        
+        if ( show_wake_all_up_status )
+        {
+            send_msg("wake_all_up status :: %s", ( wake_all ) ? "Enable" : "Disable" );
+            show_wake_all_up_status = false;    
+        }
 
         prompt_process( NULL, 0 );
         
@@ -80,6 +92,13 @@
             pshowcb = false;
         }
         
+        if ( request_clock_now )
+        {
+            request_clock_to_server ();
+            show_current_time = true;
+            request_clock_now = false;    
+        }
+        
         if ( show_current_time ) 
         {  
             show_clock ();
@@ -255,12 +274,12 @@
         }
         
         
-        if( missed_send_udp_pkg )
+        if ( missed_send_udp_pkg )
         {
             show_missed_send_udp_pkg ();
             missed_send_udp_pkg = false;
         }
-
+            
         // usado pra test
         if( flood_bug_pkg ){
             static int id = 0x10;
@@ -582,5 +601,7 @@
         
         update_all_cb_timer ( v_cb );
         
+        if ( !dont_say_hello_again ) send_hello_to_cbx ();
+        
     }// fim while
 }// fim main \o/
\ No newline at end of file