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