mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-06 03:28:58 +00:00
Fixed issue with new device
This commit is contained in:
@@ -329,7 +329,7 @@ void AmsWebServer::sysinfoJson() {
|
||||
ea->getCostLastMonth(),
|
||||
ea->getProducedLastMonth(),
|
||||
ea->getIncomeLastMonth(),
|
||||
(tz->toLocal(now)-now)/3600
|
||||
tz == NULL ? 0 : (tz->toLocal(now)-now)/3600
|
||||
);
|
||||
|
||||
stripNonAscii((uint8_t*) buf, size+1);
|
||||
|
||||
@@ -414,6 +414,7 @@ void setup() {
|
||||
ea.load();
|
||||
ea.setEapi(eapi);
|
||||
ws.setup(&config, &gpioConfig, &meterConfig, &meterState, &ds, &ea);
|
||||
handleNtpChange();
|
||||
|
||||
#if defined(ESP32)
|
||||
esp_task_wdt_init(WDT_TIMEOUT, true);
|
||||
|
||||
Reference in New Issue
Block a user