Backlight on loader_cli_open (e.g. fbt launch)

This commit is contained in:
ClaraCrazy
2023-09-30 05:00:49 +02:00
parent 1b6bf0b38a
commit 9fea2b248b

View File

@@ -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));