Monitor motorhome leisure battery and provide simple control of habitation

Dependencies:   net lpc1768 crypto clock web fram log

lpc1768-this/restart-this.c

Committer:
andrewboyson
Date:
24 months ago
Revision:
10:a97a7cb7aa82
Parent:
0:b843d647695c

File content as of revision 10:a97a7cb7aa82:

#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";
    }
}