Backlight settings bug

This commit is contained in:
Dmitry422
2026-02-08 10:16:15 +07:00
parent 30d48c112b
commit 8f248a49da
6 changed files with 33 additions and 6 deletions

View File

@@ -498,6 +498,19 @@ static void notification_process_notification_message(
}
}
break;
case NotificationMessageTypeLedDisplayBacklightForceOn:
// Force Backlight ON even if its ON now
lcd_backlight_is_on = false;
notification_apply_notification_led_layer(
&app->display,
notification_message->data.led.value * display_brightness_setting *
app->current_night_shift * 1.0f);
reset_mask |= reset_display_mask;
lcd_backlight_is_on = true;
//start rgb_mod_rainbow_timer when display backlight is ON and all corresponding settings is ON too
rainbow_timer_starter(app);
break;
case NotificationMessageTypeLedDisplayBacklightEnforceOn:
if(!app->display_led_lock) {
app->display_led_lock = true;