Skip to content

Commit

Permalink
Bugfix: button click on non table column button
Browse files Browse the repository at this point in the history
  • Loading branch information
ewowi committed Nov 11, 2023
1 parent 14f89cd commit dff4d67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Sys/SysJsonRDWS.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,15 @@ 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
// USER_PRINTF("skip newline \n");
f.read(&character, sizeof(byte));
}
else {
USER_PRINTF("%c", character);
// USER_PRINTF("%c", character);
f.read(&character, sizeof(byte));
}
} //next
Expand Down
2 changes: 1 addition & 1 deletion src/Sys/SysModUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>().c_str(), value.as<String>().c_str());

Expand Down

0 comments on commit dff4d67

Please sign in to comment.