mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-07-04 08:51:55 +02:00
full update for BatteryHealthMonitor
This commit is contained in:
+3
-1
@@ -2,6 +2,7 @@
|
||||
#include "configuration.h"
|
||||
#include "ota_utils.h"
|
||||
#include "web_utils.h"
|
||||
#include "display.h"
|
||||
#include "utils.h"
|
||||
|
||||
extern Configuration Config;
|
||||
@@ -192,7 +193,7 @@ namespace WEB_Utils {
|
||||
AsyncWebServerResponse *response = request->beginResponse(302, "text/html", "");
|
||||
response->addHeader("Location", "/");
|
||||
request->send(response);
|
||||
|
||||
display_toggle(false);
|
||||
ESP.restart();
|
||||
}
|
||||
|
||||
@@ -204,6 +205,7 @@ namespace WEB_Utils {
|
||||
|
||||
request->send(200, "text/plain", "Beacon will be sent in a while");
|
||||
} else if (type == "reboot") {
|
||||
display_toggle(false);
|
||||
ESP.restart();
|
||||
} else {
|
||||
request->send(404, "text/plain", "Not Found");
|
||||
|
||||
Reference in New Issue
Block a user