Commit 58cf18d
committed
firmware: Handle devices without ALS
Devices without internal display like Mac mini, Studio and Pro do not
have an ambient light sensor. The ioreg subprocess will not produce any
output but return with exit status 0.
Handle this gracefully. This might hide unexpected cases on devices with
ALS but a simple solution without listing devices.
Fixes: 766ecc0 ("Extract and store ALS calibration")
Signed-off-by: Janne Grunau <[email protected]>1 parent 48668e8 commit 58cf18d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments