From 99e69301080f3bc465d54c24e1541d85f27c8cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Bo=CC=88hm?= Date: Mon, 9 Jun 2025 15:00:24 +0200 Subject: [PATCH] webapp: fix: return log level for more than 5 modules --- src/WebApi_logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebApi_logging.cpp b/src/WebApi_logging.cpp index 2f0f00ca..5465aa4f 100644 --- a/src/WebApi_logging.cpp +++ b/src/WebApi_logging.cpp @@ -42,7 +42,7 @@ void WebApiLoggingClass::onLoggingAdminGet(AsyncWebServerRequest* request) int8_t idx = Configuration.getIndexForLogModule(availModule); // Set to inherit if unknown - logModule["level"] = idx < 0 || idx > ESP_LOG_VERBOSE ? -1 : config.Logging.Modules[idx].Level; + logModule["level"] = idx < 0 || idx >= LOG_MODULE_COUNT ? -1 : config.Logging.Modules[idx].Level; } WebApi.sendJsonResponse(request, response, __FUNCTION__, __LINE__);