From 4c7c0c45d41f875a26aabba393181773cab56698 Mon Sep 17 00:00:00 2001 From: fredlcore Date: Sat, 9 Dec 2023 02:36:50 +0800 Subject: [PATCH] Bugfix for /JB --- BSB_LAN/BSB_LAN.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BSB_LAN/BSB_LAN.ino b/BSB_LAN/BSB_LAN.ino index f2114a67..84599d6b 100644 --- a/BSB_LAN/BSB_LAN.ino +++ b/BSB_LAN/BSB_LAN.ino @@ -6159,7 +6159,7 @@ void loop() { do{ int i_line = findLine(j, 0, &cmd); if (i_line < 0 || (cmd == CMD_UNKNOWN && json_parameter < BSP_INTERNAL)) {//CMD_UNKNOWN except virtual programs - continue; + goto next_parameter; } loadPrognrElementsFromTable(j, i_line); if (decodedTelegram.readwrite == FL_WRITEABLE) {//Do not save "read only" or "write only" parameters @@ -6169,6 +6169,7 @@ void loop() { printFmtToWebClient(PSTR(" \"%g\":{\"parameter\":\"%g\", \"value\":\"%s\", \"type\":\"%d\"}"), j, j, decodedTelegram.value, 1); } } +next_parameter: j = get_next_prognr(j, i_line); }while(j >= cat_min && j <= cat_max); }