/setup geht noch nicht

This commit is contained in:
lumapu 2022-08-25 09:44:50 +02:00
parent 348ad4bd07
commit 03b9af216d
16 changed files with 590 additions and 482 deletions

View file

@ -20,9 +20,10 @@ app::app() {
mWifi = new ahoywifi(this, &mSysConfig, &mConfig);
resetSystem();
loadDefaultConfig();
loadDefaultConfig();
mSys = new HmSystemType();
mShouldReboot = false;
}
@ -64,6 +65,11 @@ void app::loop(void) {
}
}
if(mShouldReboot) {
DPRINTLN(DBG_INFO, F("Rebooting..."));
ESP.restart();
}
mSys->Radio.loop();
@ -946,4 +952,4 @@ void app::resetPayload(Inverter<>* iv)
mPayload[iv->id].complete = false;
mPayload[iv->id].requested = true;
mPayload[iv->id].ts = mTimestamp;
}
}