Monitor motorhome leisure battery and provide simple control of habitation
Dependencies: net lpc1768 crypto clock web fram log
Diff: lpc1768-this/restart-this.c
- Revision:
- 0:b843d647695c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lpc1768-this/restart-this.c Thu Jan 14 16:05:55 2021 +0000 @@ -0,0 +1,15 @@ +#include "restart.h" +#include "restart-this.h" + +const char* RestartThisGetZoneString() +{ + switch (RestartGetLastCause()) + { + case RESTART_ZONE_NTP_CLIENT: return "NTP" ; + case RESTART_ZONE_VALUES : return "Values" ; + case RESTART_ZONE_ONE_WIRE : return "1-wire" ; + case RESTART_ZONE_DEVICE : return "Device" ; + case RESTART_ZONE_HEATING : return "Heating"; + default : return "Unknown"; + } +}