Skip to content

Commit

Permalink
Fix: add backlight enforce on
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanFuentealba committed Dec 13, 2023
1 parent d29bf51 commit ed96373
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ App(
requires=["gui"],
stack_size=8*1024,
order=1,
fap_version=[1,0],
fap_version=[1,1],
fap_libs=["assets"],
fap_icon="icons/icon.png",
fap_icon_assets="icons",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,6 @@ static int32_t gb_live_camera_worker(void* context) {
false);
}
} while(length > 0);

notification_message(app->notification, &sequence_notification);
with_view_model(app->view, UartDumpModel * model, { UNUSED(model); }, true);
}
}
Expand All @@ -247,6 +245,8 @@ static UartEchoApp* gb_live_camera_app_alloc() {
view_dispatcher_enable_queue(app->view_dispatcher);
view_dispatcher_attach_to_gui(app->view_dispatcher, app->gui, ViewDispatcherTypeFullscreen);

// Turn backlight on
notification_message(app->notification, &sequence_display_backlight_enforce_on);
// Views
app->view = view_alloc();
view_set_context(app->view, app);
Expand Down Expand Up @@ -294,6 +294,7 @@ static void gb_live_camera_app_free(UartEchoApp* app) {
furi_hal_uart_set_irq_cb(FuriHalUartIdLPUART1, NULL, NULL);
furi_hal_uart_deinit(FuriHalUartIdLPUART1);

notification_message(app->notification, &sequence_display_backlight_enforce_auto);
// Free views
view_dispatcher_remove_view(app->view_dispatcher, 0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,3 @@ typedef enum {
} WorkerEventFlags;

#define WORKER_EVENTS_MASK (WorkerEventStop | WorkerEventRx)

const NotificationSequence sequence_notification = {
&message_display_backlight_on,
&message_delay_10,
NULL,
};

0 comments on commit ed96373

Please sign in to comment.