mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 21:26:38 +00:00
patch: Fix LEDs init error
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzothunder.ambrosi@gmail.com>
This commit is contained in:
parent
b165fb78da
commit
4232928ad8
@ -245,7 +245,6 @@ export async function init(): Promise<void> {
|
|||||||
for (const [drivePath, ledsNames] of Object.entries(ledsMapping)) {
|
for (const [drivePath, ledsNames] of Object.entries(ledsMapping)) {
|
||||||
leds.set('/dev/disk/by-path/' + drivePath, new RGBLed(ledsNames));
|
leds.set('/dev/disk/by-path/' + drivePath, new RGBLed(ledsNames));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
ledColors = (await settings.get('ledColors')) || {};
|
ledColors = (await settings.get('ledColors')) || {};
|
||||||
ledAnimationFunctions = {
|
ledAnimationFunctions = {
|
||||||
blinkGreen: createAnimationFunction(blink, ledColors['green']),
|
blinkGreen: createAnimationFunction(blink, ledColors['green']),
|
||||||
@ -258,3 +257,4 @@ export async function init(): Promise<void> {
|
|||||||
};
|
};
|
||||||
observe(_.debounce(stateObserver, 1000, { maxWait: 1000 }));
|
observe(_.debounce(stateObserver, 1000, { maxWait: 1000 }));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user