From e83d6c6ba622b225a3adc0c64c0a832e51d3331b Mon Sep 17 00:00:00 2001
From: fvanroie
Date: Tue, 6 Apr 2021 02:30:07 +0200
Subject: [PATCH] Allow startDim 0-255 and startPage 1-12
---
src/sys/svc/hasp_http.cpp | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/sys/svc/hasp_http.cpp b/src/sys/svc/hasp_http.cpp
index ca90ff14..a263f6a7 100644
--- a/src/sys/svc/hasp_http.cpp
+++ b/src/sys/svc/hasp_http.cpp
@@ -30,6 +30,7 @@
// #include "user_config_override.h"
// #endif
+/* clang-format off */
//default theme
#ifndef D_HTTP_COLOR_TEXT
#define D_HTTP_COLOR_TEXT "#000" // Global text color - Black
@@ -55,6 +56,7 @@
#ifndef D_HTTP_COLOR_BUTTON_RESET
#define D_HTTP_COLOR_BUTTON_RESET "#f00" // Restart/Reset button color - red
#endif
+/* clang-format on */
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
File fsUploadFile;
@@ -119,8 +121,10 @@ const char HTTP_STYLE[] PROGMEM =
"select{background-color:" D_HTTP_COLOR_INPUT ";color:" D_HTTP_COLOR_INPUT_TEXT ";}"
"input:invalid{border:1px solid " D_HTTP_COLOR_INPUT_WARNING ";}"
//"#hue{width:100%;}"
- "body{font-family:verdana;width:60%;margin:auto;background:" D_HTTP_COLOR_BACKGROUND ";color:" D_HTTP_COLOR_TEXT ";}"
- "button{border:0;border-radius:0.6rem;background-color:" D_HTTP_COLOR_BUTTON ";color:" D_HTTP_COLOR_BUTTON_TEXT ";line-height:2.4rem;font-size:1.2rem;"
+ "body{font-family:verdana;width:60%;margin:auto;background:" D_HTTP_COLOR_BACKGROUND ";color:" D_HTTP_COLOR_TEXT
+ ";}"
+ "button{border:0;border-radius:0.6rem;background-color:" D_HTTP_COLOR_BUTTON ";color:" D_HTTP_COLOR_BUTTON_TEXT
+ ";line-height:2.4rem;font-size:1.2rem;"
"width:100%;}"
//".q{float:right;width:64px;text-align:right;}"
".red{background-color:" D_HTTP_COLOR_BUTTON_RESET ";}"
@@ -1757,11 +1761,11 @@ void webHandleHaspConfig()
httpMessage += settings[FPSTR(FP_CONFIG_PAGES)].as();
httpMessage += F("'>Startup Page (required)
Startup Brightness (required)
");