Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
Diff: main.cpp
- Revision:
- 62:4b59c1eb429f
- Parent:
- 61:42cbfc02e0e0
- Child:
- 63:4820a4460f00
--- a/main.cpp Sat Nov 22 02:35:11 2014 +0000 +++ b/main.cpp Thu Nov 27 03:12:32 2014 +0000 @@ -750,7 +750,12 @@ int main() { // a failsafe - Watchdog::kick(WDFAILSAFE); + //Watchdog::kick(WDFAILSAFE); +#ifdef DEBUG + printf("Restart watchdog with time [%u]\r\n", + gConf.GetWatchdogPeriod()); +#endif + Watchdog::kick(gConf.GetWatchdogPeriod()); gCpu.baud(CPUBAUD_SN); @@ -1410,6 +1415,10 @@ #endif // restart watchdog +#ifdef DEBUG + printf("Restart watchdog with time [%u]\r\n", + gConf.GetWatchdogPeriod()); +#endif Watchdog::kick(gConf.GetWatchdogPeriod()); // block (thermal) triggers during configuration