From 22c316edbbd05ef8e6ab30b06bb0d47ac43f747e Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 26 Oct 2024 06:43:37 +0200 Subject: [PATCH] only show configured values --- .../CanGrow/include/Webserver/Page_system.h | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/Arduino/CanGrow/include/Webserver/Page_system.h b/Arduino/CanGrow/include/Webserver/Page_system.h index c3797a4..acbbff0 100644 --- a/Arduino/CanGrow/include/Webserver/Page_system.h +++ b/Arduino/CanGrow/include/Webserver/Page_system.h @@ -305,22 +305,24 @@ String Proc_WebPage_system_output(const String& var) { // i dont know a better way at the moment. if you do, please tell me! String output_tr_td; for(byte i=0; i < Max_Outputs; i++) { - Serial.printf("DB [Webserver:system:output(Proc)] OutputID %d Type %d\n", i, config.system.output.type[i]); - output_tr_td += ""; - output_tr_td += i; - output_tr_td += ""; - output_tr_td += config.system.output.name[i]; - output_tr_td += ""; - output_tr_td += config.system.output.type[i]; - output_tr_td += ""; - output_tr_td += config.system.output.device[i]; - output_tr_td += ""; - output_tr_td += config.system.output.enabled[i]; - output_tr_td += "✏️ "; + if(config.system.output.type[i] > 0) { + Serial.printf("DB [Webserver:system:output(Proc)] OutputID %d Type %d\n", i, config.system.output.type[i]); + output_tr_td += ""; + output_tr_td += i; + output_tr_td += ""; + output_tr_td += config.system.output.name[i]; + output_tr_td += ""; + output_tr_td += config.system.output.type[i]; + output_tr_td += ""; + output_tr_td += config.system.output.device[i]; + output_tr_td += ""; + output_tr_td += config.system.output.enabled[i]; + output_tr_td += "✏️ "; + } } return output_tr_td;