fixes a bug in the LED display which ocures if the "avoid flicker" flag is not set, closes #489

This commit is contained in:
hneemann 2020-06-28 09:30:37 +02:00
parent f135cc3e6b
commit 0eb7902f1b

View File

@ -79,7 +79,7 @@ public class LedMatrix extends Node implements Element {
public void readInputs() throws NodeException {
long rowData = rowDataVal.getValue();
int colAddr = (int) colAddrVal.getValue();
if (colAddr < dx && data[colAddr] != rowData) {
if (colAddr < dx && (!ledPersist || data[colAddr] != rowData)) {
data[colAddr] = rowData;
dataChanged(colAddr, rowData);
}