diff --git a/Arduino/CanGrow/CanGrow_Version.h b/Arduino/CanGrow/CanGrow_Version.h index d2b8e33..33c763b 100644 --- a/Arduino/CanGrow/CanGrow_Version.h +++ b/Arduino/CanGrow/CanGrow_Version.h @@ -1,5 +1,5 @@ /* CanGrow_Version.h gets generated from cangrow.sh */ const char* CanGrowVer = "0.1-dev"; -const char* CanGrowBuild = "e1fcb09-20240616201039"; +const char* CanGrowBuild = "54fec62-20240616204659"; diff --git a/Arduino/CanGrow/CanGrow_WebFunctions.h b/Arduino/CanGrow/CanGrow_WebFunctions.h index 5eb2f41..e445453 100644 --- a/Arduino/CanGrow/CanGrow_WebFunctions.h +++ b/Arduino/CanGrow/CanGrow_WebFunctions.h @@ -1022,6 +1022,12 @@ void POSTsetOutput() { } +void POSTsetPumpManual() { + PumpOnManual = webserver.arg("PumpOnManual").toInt(); + webserver.sendHeader("Location", String("/?success"), true); + webserver.send(302, "text/plain", "switch: success!\n"); +} + /* * API section @@ -1179,6 +1185,7 @@ void WebHandler() { // switching MOSFETs webserver.on("/switch", HTTP_POST, POSTsetOutput); + webserver.on("/pumpManual", HTTP_POST, POSTsetPumpManual); // api stuff webserver.on("/api/sensors", HTTP_GET, APIgetSensors);