This commit is contained in:
Willy-JL
2024-03-12 04:35:14 +00:00
20 changed files with 294 additions and 251 deletions

View File

@@ -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;
@@ -97,16 +95,7 @@ void infrared_scene_universal_fan_on_enter(void* context) {
button_panel_add_label(button_panel, 20, 11, FontPrimary, "Fans");
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) {