diff --git a/_P161_Switchboard.ino b/_P161_Switchboard.ino
index 2a5dc72..a4d9dc6 100644
--- a/_P161_Switchboard.ino
+++ b/_P161_Switchboard.ino
@@ -4,7 +4,7 @@
Features :
- Displays input/output devices states/values at a dedicated URL
- http://ipaddress/board
+ http://ipaddress/board
List of internal commands :
- board?cmd=output,[devicename],[pin_number] Send the output command to a device, than return status in html
@@ -12,6 +12,9 @@
if devicepin defined, than toggle it also (for Output helper)
than return html
+ Known bug:
+ - if empty slots exists in between devices in device pages, the /json output causes refresh errors
+
------------------------------------------------------------------------------------------
Copyleft Nagy Sándor 2018 - https://bitekmindenhol.blog.hu/
------------------------------------------------------------------------------------------
@@ -183,8 +186,8 @@ void p161_handle_board()
byte firstTaskIndex = 0;
byte lastTaskIndex = TASKS_MAX - 1;
- if (Settings.TaskDevicePluginConfig[Plugin_161_taskindex][6] < lastTaskIndex) {
- lastTaskIndex = Settings.TaskDevicePluginConfig[Plugin_161_taskindex][6];
+ if (Settings.TaskDevicePluginConfig[Plugin_161_taskindex][6]-1 < lastTaskIndex) {
+ lastTaskIndex = Settings.TaskDevicePluginConfig[Plugin_161_taskindex][6]-1;
}
byte lastActiveTaskIndex = 0;
for (byte TaskIndex = firstTaskIndex; TaskIndex <= lastTaskIndex; TaskIndex++) {
@@ -192,15 +195,15 @@ void p161_handle_board()
lastActiveTaskIndex = TaskIndex;
}
- TXBuffer += F("");
TXBuffer += F("