SmartCharge / Mbed 2 deprecated 2017charger_16_32_Relay

Dependencies:   Watchdog mbed

Revision:
5:8e64f59100e0
Parent:
4:6547599b54a0
Child:
6:71482254d97b
--- a/main.cpp	Mon Feb 06 15:24:36 2017 +0000
+++ b/main.cpp	Mon Feb 20 13:13:10 2017 +0000
@@ -260,6 +260,9 @@
     
     while(true)                                                 // Start of process loop. 
     {
+        
+        wd.Service();                                           // Service the Watchdog so it does not cause a system reset.
+        
         // check the cable using pp value
         reading_pp = pp_value.read();                           // Read pp value and ...
         reading_pp = reading_pp * 3300;                         // ... multiply it by 3300 to convert to mV.