Remove WLED_DISABLE_OTA guard from /json/bootloader endpoint

Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-09-03 20:19:43 +00:00
parent 3b1b3578f0
commit 8f06cdaaac

View File

@@ -388,7 +388,6 @@ void initServer()
createEditHandler(correctPIN); createEditHandler(correctPIN);
#ifndef WLED_DISABLE_OTA
// Bootloader info endpoint for troubleshooting // Bootloader info endpoint for troubleshooting
server.on("/json/bootloader", HTTP_GET, [](AsyncWebServerRequest *request){ server.on("/json/bootloader", HTTP_GET, [](AsyncWebServerRequest *request){
AsyncJsonResponse *response = new AsyncJsonResponse(128); AsyncJsonResponse *response = new AsyncJsonResponse(128);
@@ -396,7 +395,11 @@ void initServer()
root[F("version")] = getBootloaderVersion(); root[F("version")] = getBootloaderVersion();
#ifdef ESP32 #ifdef ESP32
#ifndef WLED_DISABLE_OTA
root[F("rollback_capable")] = Update.canRollBack(); root[F("rollback_capable")] = Update.canRollBack();
#else
root[F("rollback_capable")] = false;
#endif
root[F("esp_idf_version")] = ESP_IDF_VERSION; root[F("esp_idf_version")] = ESP_IDF_VERSION;
#else #else
root[F("rollback_capable")] = false; root[F("rollback_capable")] = false;
@@ -406,7 +409,6 @@ void initServer()
response->setLength(); response->setLength();
request->send(response); request->send(response);
}); });
#endif
static const char _update[] PROGMEM = "/update"; static const char _update[] PROGMEM = "/update";
#ifndef WLED_DISABLE_OTA #ifndef WLED_DISABLE_OTA