mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-11 16:06:38 +02:00
/setup geht noch nicht
This commit is contained in:
parent
348ad4bd07
commit
03b9af216d
16 changed files with 590 additions and 482 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue