mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Backlight Fix #2: only if LoaderStatusOk --nobuild
This commit is contained in:
@@ -54,13 +54,13 @@ 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(notifications, &sequence_display_backlight_on);
|
||||
furi_record_close(RECORD_NOTIFICATION);
|
||||
|
||||
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));
|
||||
} else {
|
||||
NotificationApp* notifications = furi_record_open(RECORD_NOTIFICATION);
|
||||
notification_message(notifications, &sequence_display_backlight_on);
|
||||
furi_record_close(RECORD_NOTIFICATION);
|
||||
}
|
||||
furi_string_free(error_message);
|
||||
} while(false);
|
||||
|
||||
Reference in New Issue
Block a user