mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 07:17:13 -04:00
fixes a bug in the LED display which ocures if the "avoid flicker" flag is not set, closes #489
This commit is contained in:
parent
f135cc3e6b
commit
0eb7902f1b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user