fix sensorindex iteration
This commit is contained in:
parent
3a55104f55
commit
6d94bb224c
1 changed files with 1 additions and 1 deletions
|
@ -917,7 +917,7 @@ void WebPage_system_sensor(AsyncWebServerRequest *request) {
|
||||||
String Html_SelOpt_type_WebPage_system_sensor_add(byte selectId = 255) {
|
String Html_SelOpt_type_WebPage_system_sensor_add(byte selectId = 255) {
|
||||||
String sensorType_html;
|
String sensorType_html;
|
||||||
// go through all available Output Devices, skip 0 because it means unconfigured
|
// 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 += "<option value='";
|
||||||
sensorType_html += i;
|
sensorType_html += i;
|
||||||
sensorType_html += "'";
|
sensorType_html += "'";
|
||||||
|
|
Loading…
Reference in a new issue