Fix rgb backlight configuration and setup

This commit is contained in:
Willy-JL
2023-08-15 00:20:46 +02:00
parent fed21fae64
commit d413d30a2d
5 changed files with 28 additions and 6 deletions

View File

@@ -36,7 +36,6 @@ static void xtreme_app_scene_misc_screen_lcd_color_changed(VariableItem* item) {
variable_item_set_current_value_text(item, rgb_backlight_get_color_text(index));
rgb_backlight_set_color(index);
app->save_backlight = true;
notification_message(app->notification, &sequence_display_backlight_on);
}
const char* const rainbow_lcd_names[RGBBacklightRainbowModeCount] = {
@@ -208,6 +207,7 @@ bool xtreme_app_scene_misc_screen_on_event(void* context, SceneManagerEvent even
XTREME_SETTINGS()->rgb_backlight = !XTREME_SETTINGS()->rgb_backlight;
app->save_settings = true;
notification_message(app->notification, &sequence_display_backlight_on);
rgb_backlight_reconfigure(XTREME_SETTINGS()->rgb_backlight);
scene_manager_previous_scene(app->scene_manager);
scene_manager_next_scene(app->scene_manager, XtremeAppSceneMiscScreen);
}