Skip to content

Commit

Permalink
sync scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Mar 15, 2024
1 parent eb013ab commit 17dd089
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions applications/main/infrared/scenes/infrared_scene_universal_fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include "common/infrared_scene_universal_common.h"

void infrared_scene_universal_fan_on_enter(void* context) {
infrared_scene_universal_common_on_enter(context);

InfraredApp* infrared = context;
ButtonPanel* button_panel = infrared->button_panel;
InfraredBruteForce* brute_force = infrared->brute_force;
Expand Down Expand Up @@ -97,16 +95,7 @@ void infrared_scene_universal_fan_on_enter(void* context) {
button_panel_add_label(button_panel, 5, 11, FontPrimary, "Fan remote");
button_panel_add_icon(button_panel, 34, 68, &I_speed_text_30x30);

view_set_orientation(view_stack_get_view(infrared->view_stack), ViewOrientationVertical);
view_dispatcher_switch_to_view(infrared->view_dispatcher, InfraredViewStack);

infrared_show_loading_popup(infrared, true);
bool success = infrared_brute_force_calculate_messages(brute_force);
infrared_show_loading_popup(infrared, false);

if(!success) {
scene_manager_next_scene(infrared->scene_manager, InfraredSceneErrorDatabases);
}
infrared_scene_universal_common_on_enter(context);
}

bool infrared_scene_universal_fan_on_event(void* context, SceneManagerEvent event) {
Expand Down

0 comments on commit 17dd089

Please sign in to comment.