From 54b6d48e1ebd47cb29bd47622d915714a4df8038 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 26 Oct 2024 18:14:44 +0200 Subject: [PATCH] call Check_GPIOindex_Used only once --- Arduino/CanGrow/include/Webserver/Page_system.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Arduino/CanGrow/include/Webserver/Page_system.h b/Arduino/CanGrow/include/Webserver/Page_system.h index 8c5eb98..06751e3 100644 --- a/Arduino/CanGrow/include/Webserver/Page_system.h +++ b/Arduino/CanGrow/include/Webserver/Page_system.h @@ -371,11 +371,13 @@ String Proc_WebPage_system_output_add(const String& var) { String gpioIndex_html; // iterate through through all available GPIOs in index for(byte i = 0; i < GPIOindex_length; i++) { + bool gpioUsed = Check_GPIOindex_Used(i); + gpioIndex_html += "