fix: suspend web panel for OTA

This commit is contained in:
Jared Dohrman
2026-04-21 18:19:33 +10:00
parent 0ad50e5bd0
commit 2ad3b134f2
8 changed files with 35 additions and 5 deletions
+6
View File
@@ -1973,6 +1973,12 @@ void MyMesh::clearStats() {
((SimpleMeshTables *)getTables())->resetStats();
}
void MyMesh::prepareForOTAStart() {
#if defined(ESP_PLATFORM) && WITH_WEB_PANEL
web.suspendForOTA();
#endif
}
void MyMesh::handleCommand(uint32_t sender_timestamp, char *command, char *reply) {
if (region_load_active) {
if (StrHelper::isBlank(command)) { // empty/blank line, signal to terminate 'load' operation