mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-25 15:57:18 +00:00
Initialize leds object map
Fixes: #3056 #3057 #3058 Change-type: patch Changelog-entry: Initialize leds object map
This commit is contained in:
parent
f8b46dc647
commit
fdec65e9bd
@ -190,9 +190,8 @@ export function init() {
|
|||||||
// ],
|
// ],
|
||||||
// ...
|
// ...
|
||||||
// }
|
// }
|
||||||
const ledsMapping: _.Dictionary<[string, string, string]> = settings.get(
|
const ledsMapping: _.Dictionary<[string, string, string]> =
|
||||||
'ledsMapping',
|
settings.get('ledsMapping') || {};
|
||||||
);
|
|
||||||
for (const [drivePath, ledsPaths] of Object.entries(ledsMapping)) {
|
for (const [drivePath, ledsPaths] of Object.entries(ledsMapping)) {
|
||||||
leds.set('/dev/disk/by-path/' + drivePath, new RGBLed(ledsPaths));
|
leds.set('/dev/disk/by-path/' + drivePath, new RGBLed(ledsPaths));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user