only show configured values
This commit is contained in:
parent
bc15bbab46
commit
22c316edbb
1 changed files with 18 additions and 16 deletions
|
@ -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 += "<tr><td>";
|
||||
output_tr_td += i;
|
||||
output_tr_td += "</td><td>";
|
||||
output_tr_td += config.system.output.name[i];
|
||||
output_tr_td += "</td><td>";
|
||||
output_tr_td += config.system.output.type[i];
|
||||
output_tr_td += "</td><td>";
|
||||
output_tr_td += config.system.output.device[i];
|
||||
output_tr_td += "</td><td>";
|
||||
output_tr_td += config.system.output.enabled[i];
|
||||
output_tr_td += "</td><td><a href='#";
|
||||
output_tr_td += i;
|
||||
output_tr_td += "'>✏️</a> <a href='#";
|
||||
output_tr_td += i;
|
||||
output_tr_td += "'>❌</a></td></tr>";
|
||||
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 += "<tr><td>";
|
||||
output_tr_td += i;
|
||||
output_tr_td += "</td><td>";
|
||||
output_tr_td += config.system.output.name[i];
|
||||
output_tr_td += "</td><td>";
|
||||
output_tr_td += config.system.output.type[i];
|
||||
output_tr_td += "</td><td>";
|
||||
output_tr_td += config.system.output.device[i];
|
||||
output_tr_td += "</td><td>";
|
||||
output_tr_td += config.system.output.enabled[i];
|
||||
output_tr_td += "</td><td><a href='#";
|
||||
output_tr_td += i;
|
||||
output_tr_td += "'>✏️</a> <a href='#";
|
||||
output_tr_td += i;
|
||||
output_tr_td += "'>❌</a></td></tr>";
|
||||
}
|
||||
}
|
||||
|
||||
return output_tr_td;
|
||||
|
|
Loading…
Reference in a new issue