From 1acbd6439b84e45ee1520f911f9978eae3dbcec2 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Tue, 15 Feb 2022 06:34:19 +0100 Subject: [PATCH] Remove Update from URL #300 --- src/sys/svc/hasp_http.cpp | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/sys/svc/hasp_http.cpp b/src/sys/svc/hasp_http.cpp index a8393429..9e625d08 100644 --- a/src/sys/svc/hasp_http.cpp +++ b/src/sys/svc/hasp_http.cpp @@ -135,8 +135,8 @@ static const char HTTP_MENU_BUTTON[] PROGMEM = const char MAIN_MENU_BUTTON[] PROGMEM = "" D_HTTP_MAIN_MENU ""; const char MIT_LICENSE[] PROGMEM = "
MIT License

"; -const char HTTP_DOCTYPE[] PROGMEM = ""; +const char HTTP_DOCTYPE[] PROGMEM = ""; const char HTTP_META_GO_BACK[] PROGMEM = ""; const char HTTP_HEADER[] PROGMEM = "%s"; const char HTTP_HEADER_END[] PROGMEM = @@ -2053,17 +2053,19 @@ static void webHandleFirmware() httpMessage += F(""); httpMessage += F(""); - // Form - httpMessage += F("
"); + /* Update from URL + // Form + httpMessage += F("
"); - // URL - httpMessage += - F("
"); - httpMessage += F("
"); + // URL + httpMessage += + F("
"); + httpMessage += F("
"); - // Submit & End Form - httpMessage += F(""); - httpMessage += F("
"); + // Submit & End Form + httpMessage += F(""); + httpMessage += F("
"); + */ httpMessage += FPSTR(MAIN_MENU_BUTTON); @@ -2384,7 +2386,7 @@ void httpSetup() LOG_VERBOSE(TAG_HTTP, F("Total size: %s"), webServer.hostHeader().c_str()); }, webHandleFirmwareUpload); - webServer.on(F("/espfirmware"), httpHandleEspFirmware); + // webServer.on(F("/espfirmware"), httpHandleEspFirmware); #endif LOG_INFO(TAG_HTTP, F(D_SERVICE_STARTED));