mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Backlight on loader_cli_open (e.g. fbt launch)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <cli/cli.h>
|
||||
#include <applications.h>
|
||||
#include <lib/toolbox/args.h>
|
||||
#include <notification/notification_messages.h>
|
||||
#include "loader.h"
|
||||
|
||||
static void loader_cli_print_usage() {
|
||||
@@ -53,6 +54,9 @@ static void loader_cli_open(FuriString* args, Loader* loader) {
|
||||
|
||||
const char* app_name_str = furi_string_get_cstr(app_name);
|
||||
|
||||
NotificationApp* notifications = furi_record_open(RECORD_NOTIFICATION);
|
||||
notification_message_block(notifications, &sequence_display_backlight_on);
|
||||
|
||||
FuriString* error_message = furi_string_alloc();
|
||||
if(loader_start(loader, app_name_str, args_str, error_message) != LoaderStatusOk) {
|
||||
printf("%s\r\n", furi_string_get_cstr(error_message));
|
||||
|
||||
Reference in New Issue
Block a user