mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-25 03:45:23 +00:00
Moved reset of reboot reason to main program
This commit is contained in:
@@ -61,14 +61,6 @@ AmsWebServer::AmsWebServer(uint8_t* buf, Stream* Debug, HwTools* hw, ResetDataCo
|
||||
this->hw = hw;
|
||||
this->buf = (char*) buf;
|
||||
this->rdc = rdc;
|
||||
if(rdc->magic != 0x4a) {
|
||||
rdc->last_cause = 0;
|
||||
rdc->cause = 0;
|
||||
rdc->magic = 0x4a;
|
||||
} else {
|
||||
rdc->last_cause = rdc->cause;
|
||||
rdc->cause = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void AmsWebServer::setup(AmsConfiguration* config, GpioConfig* gpioConfig, AmsData* meterState, AmsDataStorage* ds, EnergyAccounting* ea, RealtimePlot* rtp, AmsFirmwareUpdater* updater) {
|
||||
|
||||
Reference in New Issue
Block a user