* refactor: ESP32 OTA lib-deps now selectively added

This commit is contained in:
Scott Powell 2025-03-23 17:36:31 +11:00
parent a4bb3782a4
commit f861b68a09
9 changed files with 56 additions and 1 deletions

View file

@ -1,6 +1,8 @@
#ifdef ESP_PLATFORM
#include "ESP32Board.h"
#if defined(ADMIN_PASSWORD) // Repeater or Room Server only
#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
@ -29,4 +31,11 @@ bool ESP32Board::startOTAUpdate(const char* id, char reply[]) {
return true;
}
#else
bool ESP32Board::startOTAUpdate(const char* id, char reply[]) {
return false; // not supported
}
#endif
#endif