mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-05 14:37:05 +00:00
Reboot Mode Added
This commit is contained in:
parent
960df01d61
commit
51f9e0f0cc
9 changed files with 160 additions and 58 deletions
|
|
@ -262,4 +262,19 @@ namespace Utils {
|
|||
}
|
||||
}
|
||||
|
||||
void checkRebootMode() {
|
||||
if (Config.rebootMode && Config.rebootModeTime > 0) {
|
||||
Serial.println("(Reboot Time Set to " + String(Config.rebootModeTime) + " hours)");
|
||||
}
|
||||
}
|
||||
|
||||
void checkRebootTime() {
|
||||
if (Config.rebootMode && Config.rebootModeTime > 0) {
|
||||
if (millis() > Config.rebootModeTime * 60 * 60 * 1000) {
|
||||
Serial.println("\n*** Automatic Reboot Time Restart! ****\n");
|
||||
ESP.restart();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue