From dff4d67275778ff918391930766f46dd3d177511 Mon Sep 17 00:00:00 2001 From: Ewoud Date: Sat, 11 Nov 2023 15:22:27 +0100 Subject: [PATCH] Bugfix: button click on non table column button --- src/Sys/SysJsonRDWS.h | 4 ++-- src/Sys/SysModUI.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Sys/SysJsonRDWS.h b/src/Sys/SysJsonRDWS.h index 277e8ac9..f7e046ea 100644 --- a/src/Sys/SysJsonRDWS.h +++ b/src/Sys/SysJsonRDWS.h @@ -202,7 +202,7 @@ class JsonRDWS { f.read(&character, sizeof(byte)); } else if (character=='}') { - USER_PRINTF("close %c\n", character); + // USER_PRINTF("close %c\n", character); f.read(&character, sizeof(byte)); } else if (character=='\n') { //skip new lines @@ -210,7 +210,7 @@ class JsonRDWS { f.read(&character, sizeof(byte)); } else { - USER_PRINTF("%c", character); + // USER_PRINTF("%c", character); f.read(&character, sizeof(byte)); } } //next diff --git a/src/Sys/SysModUI.cpp b/src/Sys/SysModUI.cpp index 0e61088a..e529ba4d 100644 --- a/src/Sys/SysModUI.cpp +++ b/src/Sys/SysModUI.cpp @@ -341,7 +341,7 @@ const char * SysModUI::processJson(JsonVariant &json) { changed = var["value"] != value; if (var["type"] == "button") //button always - setChFunAndWs(var, atoi(rowNr)); //setValue without assignment + setChFunAndWs(var, rowNr?atoi(rowNr):uint8Max); //setValue without assignment else if (changed) { // USER_PRINTF("processJson %s %s->%s\n", key, var["value"].as().c_str(), value.as().c_str());