Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
132:05cd37f7e007
Parent:
124:c1b6c893e1c3
diff -r 938ab88facae -r 05cd37f7e007 wdt_manager.h
--- a/wdt_manager.h	Tue Jul 21 20:03:35 2015 +0000
+++ b/wdt_manager.h	Tue Sep 01 17:21:11 2015 +0000
@@ -11,6 +11,7 @@
 extern UDPSocket udp_wdt_client;
 const uint16_t EXTERNAL_WDT_SERVER_PORT = 9395;
 const uint16_t EXTERNAL_WDT_HEADER_PORT = 6612;
+const uint8_t MIN_CBX_IN_A_BRANCH = 2;
     
 inline int init_wdt ()
 {
@@ -28,8 +29,8 @@
 inline void reconnect_extern_wdt_socket()
 {
   udp_wdt_client.close();
+  udp_wdt_client.bind( 6612 );
   udp_wdt_client.set_blocking( false, 0 );
-  udp_wdt_client.bind( 6612 );
 }
 
 #endif
\ No newline at end of file