minor PR feedback
This commit is contained in:
parent
ef5fa9ae82
commit
1ab7ae6cfa
@ -14,7 +14,9 @@ namespace pxsim.output {
|
||||
export function setLights(pattern: number) {
|
||||
const brickState = ev3board().getBrickNode();
|
||||
const lightState = brickState.lightState;
|
||||
lightState.lightPattern = pattern;
|
||||
brickState.setChangedState();
|
||||
if (lightState.lightPattern != pattern) {
|
||||
lightState.lightPattern = pattern;
|
||||
brickState.setChangedState();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user