mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +00:00
Merge pull request #3062 from balena-io/init-leds-map
Initialize leds object map
This commit is contained in:
commit
8771f311d7
@ -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