fix sensorindex iteration

This commit is contained in:
Marcus 2024-11-19 00:32:48 +01:00
parent 3a55104f55
commit 6d94bb224c

View file

@ -917,7 +917,7 @@ void WebPage_system_sensor(AsyncWebServerRequest *request) {
String Html_SelOpt_type_WebPage_system_sensor_add(byte selectId = 255) {
String sensorType_html;
// go through all available Output Devices, skip 0 because it means unconfigured
for(byte i = 1; i < SensorIndex_length; i++) {
for(byte i = 1; i <= SensorIndex_length; i++) {
sensorType_html += "<option value='";
sensorType_html += i;
sensorType_html += "'";