From 4edd60f1c3f672b25c17e7ad28858abf66063dca Mon Sep 17 00:00:00 2001 From: Zev Eisenberg Date: Mon, 21 Oct 2024 22:52:59 -0400 Subject: [PATCH] Clarify comments. --- ESP32_PrusaConnectCam/WebServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP32_PrusaConnectCam/WebServer.cpp b/ESP32_PrusaConnectCam/WebServer.cpp index 64372ff..7ac17b8 100644 --- a/ESP32_PrusaConnectCam/WebServer.cpp +++ b/ESP32_PrusaConnectCam/WebServer.cpp @@ -443,7 +443,7 @@ void Server_InitWebServer_Actions() { request->send(200, "text/plain", "Send Photo"); }); - /* route for change LED status */ + /* route to toggle the LED on and off. If the LED is on, this route turns it off, and vice-versa. */ server.on("/action_led", HTTP_GET, [](AsyncWebServerRequest* request) { SystemLog.AddEvent(LogLevel_Verbose, F("WEB server: /action_led Change LED status")); if (Server_CheckBasicAuth(request) == false) @@ -455,7 +455,7 @@ void Server_InitWebServer_Actions() { request->send(200, "text/plain", "Change LED status"); }); - /* route for change LED status */ + /* route to set the LED on or off manually */ server.on("/light", HTTP_GET, [](AsyncWebServerRequest* request) { SystemLog.AddEvent(LogLevel_Verbose, F("WEB server: /light set LED status")); if (Server_CheckBasicAuth(request) == false)