From 7713eb88d3cbd9f98f497019138b39ee455979d4 Mon Sep 17 00:00:00 2001 From: jay candel Date: Thu, 23 Jan 2025 08:27:26 +0800 Subject: [PATCH] IR: Easy Learn [Bugfix] (#360) --nobuild * reset index count when starting new remote * fucking linter --------- Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com> --- applications/main/infrared/scenes/infrared_scene_start.c | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/main/infrared/scenes/infrared_scene_start.c b/applications/main/infrared/scenes/infrared_scene_start.c index 76c5f45be..63cd66585 100644 --- a/applications/main/infrared/scenes/infrared_scene_start.c +++ b/applications/main/infrared/scenes/infrared_scene_start.c @@ -112,6 +112,7 @@ bool infrared_scene_start_on_event(void* context, SceneManagerEvent event) { infrared_worker_rx_enable_signal_decoding( infrared->worker, submenu_index == SubmenuIndexLearnNewRemote); infrared->app_state.is_learning_new_remote = true; + infrared->app_state.current_button_index = 0; // Reset index when starting new remote scene_manager_next_scene(scene_manager, InfraredSceneLearn); } else if(submenu_index == SubmenuIndexSavedRemotes) { furi_string_set(infrared->file_path, INFRARED_APP_FOLDER);