[FL-2515] Keep backlight on for updater ops (#1184)
* [FL-2515] Keep backlight on for updater ops * Notification: Renamed backlight sequences to more obvious names Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -25,6 +25,7 @@ static void sd_mount_callback(const void* message, void* context) {
|
||||
|
||||
void updater_scene_main_on_enter(void* context) {
|
||||
Updater* updater = (Updater*)context;
|
||||
notification_message(updater->notification, &sequence_display_backlight_enforce_on);
|
||||
UpdaterMainView* main_view = updater->main_view;
|
||||
|
||||
FuriPubSubSubscription* sub =
|
||||
@@ -92,8 +93,9 @@ bool updater_scene_main_on_event(void* context, SceneManagerEvent event) {
|
||||
void updater_scene_main_on_exit(void* context) {
|
||||
Updater* updater = (Updater*)context;
|
||||
|
||||
notification_message(updater->notification, &sequence_display_backlight_enforce_auto);
|
||||
furi_pubsub_unsubscribe(
|
||||
storage_get_pubsub(updater->storage), updater_main_get_storage_pubsub(updater->main_view));
|
||||
|
||||
scene_manager_set_scene_state(updater->scene_manager, UpdaterSceneMain, 0);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user