Commit 1c79e68
fix: tdeck backlight turned off for all valid brightness levels
power_backlight_on() scaled brightness as a 0-255 value, but Jade passes
levels BACKLIGHT_MIN..BACKLIGHT_MAX (1..5), so the result was always 0 and
the backlight switched off as soon as the stored brightness was applied
after boot. Clamp and map levels 1..5 linearly onto dimmer steps 1..16.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent bb716c7 commit 1c79e68
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| |||
0 commit comments