Skip to content

Commit 4aa242b

Browse files
committed
fix(core): while trying to increase the backlight brightness at T3W1 using the slider, it lags. The reason is implemented wait for making sure that the display gets refreshed during fade out/fade in transitions. The current implementation of the condition limits the wait only to such cases and not to all when the brightness needs to be increased.
[no changelog]
1 parent 9c8b156 commit 4aa242b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/embed/io/display/ltdc_dsi/display_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ bool display_set_backlight(uint8_t level) {
450450
}
451451

452452
#ifdef USE_BACKLIGHT
453-
if (level > backlight_get()) {
453+
if (level > 0 && backlight_get() == 0) {
454454
display_ensure_refreshed();
455455
}
456456

0 commit comments

Comments
 (0)