From 790b9bb9c962fb7c168eee313ebd6a652b07a1d3 Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 28 Oct 2024 22:30:20 +0100 Subject: [PATCH] put stuff into seperate functions --- Arduino/CanGrow/include/Webserver/Common.h | 61 +++++++++++++ .../CanGrow/include/Webserver/Page_system.h | 89 +++++++++---------- 2 files changed, 101 insertions(+), 49 deletions(-) diff --git a/Arduino/CanGrow/include/Webserver/Common.h b/Arduino/CanGrow/include/Webserver/Common.h index 05a3a72..23efaf4 100644 --- a/Arduino/CanGrow/include/Webserver/Common.h +++ b/Arduino/CanGrow/include/Webserver/Common.h @@ -106,3 +106,64 @@ String AddHeaderFooter(const String& var, byte activeNav = 0) { return String(); } } + + +/* + * Html_SelectOpt_GPIOindex + * + * returns "; + } + return gpioIndex_html; +} + + +String Html_SelectOpt_bool(byte selectVal = 255, String trueStr = "Yes", String falseStr = "No") { + String html; + html += ""; - } - return gpioIndex_html; + return Html_SelectOpt_GPIOindex(); + } else { return String(); }