Release Candidate Bug Fixes and Improvements (#1121)
* Notification: use all input for backlight, otherwise it is causing issues on repeat. Dolphin: rework debug tools. * Notification: remove unused variable * Applications: fix incorrect count in system apps list * SubGhz: fix memory leak in settings * SubGhz: fix incorrect frequency in newly created keys * Loader: make cli command parallel safe
This commit is contained in:
@@ -101,6 +101,11 @@ const FlipperApplication* loader_find_application_by_name(const char* name) {
|
||||
}
|
||||
|
||||
void loader_cli_open(Cli* cli, string_t args, Loader* instance) {
|
||||
if(loader_is_locked(instance)) {
|
||||
printf("Can't start, furi application is running");
|
||||
return;
|
||||
}
|
||||
|
||||
string_t application_name;
|
||||
string_init(application_name);
|
||||
|
||||
@@ -292,7 +297,7 @@ static Loader* loader_alloc() {
|
||||
|
||||
#ifdef SRV_CLI
|
||||
instance->cli = furi_record_open("cli");
|
||||
cli_add_command(instance->cli, "loader", CliCommandFlagDefault, loader_cli, instance);
|
||||
cli_add_command(instance->cli, "loader", CliCommandFlagParallelSafe, loader_cli, instance);
|
||||
#else
|
||||
UNUSED(loader_cli);
|
||||
#endif
|
||||
@@ -488,4 +493,4 @@ int32_t loader_srv(void* p) {
|
||||
|
||||
FuriPubSub* loader_get_pubsub(Loader* instance) {
|
||||
return instance->pubsub;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user