Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
135:2f4290590e51
Parent:
125:8ff4dc96ad58
--- a/flood.cpp	Tue Sep 01 19:34:34 2015 +0000
+++ b/flood.cpp	Thu Sep 10 20:11:35 2015 +0000
@@ -1,6 +1,6 @@
 #include "flood.h"
 
-uint8_t pflood = 0;
+bool pflood = false;
 
 Timer tflood;
 int floodcount = 0;
@@ -28,8 +28,8 @@
         Bflood[ CB_BUFFER_SIZE - 1 ] = 0xe1;
 
         send2callboxes( Bflood );
-        if( debug_uart3 ) pc.printf("F");
-        if( tcp_session ){
+        if( debug_uart3 and enable_flood ) pc.printf("F");
+        if( tcp_session and enable_flood ){
             tcp_client.send_all( "F", strlen( "F" ) );
         }
     }