Notification: backlight always on lock. Gpio: backlight always on lock in uart brige app. (#1007)

This commit is contained in:
あく
2022-02-24 03:17:40 +03:00
committed by GitHub
parent 3c77ae2eb8
commit 92734f1bb3
6 changed files with 65 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ void gpio_scene_usb_uart_on_enter(void* context) {
gpio_usb_uart_set_callback(app->gpio_usb_uart, gpio_scene_usb_uart_callback, app);
scene_manager_set_scene_state(app->scene_manager, GpioAppViewUsbUart, 0);
view_dispatcher_switch_to_view(app->view_dispatcher, GpioAppViewUsbUart);
notification_message(app->notifications, &sequence_display_lock);
}
bool gpio_scene_usb_uart_on_event(void* context, SceneManagerEvent event) {
@@ -62,4 +63,5 @@ void gpio_scene_usb_uart_on_exit(void* context) {
usb_uart_disable(app->usb_uart_bridge);
free(scene_usb_uart);
}
notification_message(app->notifications, &sequence_display_unlock);
}