[FL-1475] iButton emulate shortcat (#535)

* ibutton: run emulation when launched with argument
* app-loader: set NULL context when starting application from menu
* ibutton: change p to argc
* ibutton: fix load key data from file
* ibutton: fix memory leak
This commit is contained in:
gornekich
2021-06-24 14:32:33 +03:00
committed by GitHub
parent 5b8f147882
commit 8cc0a9a998
4 changed files with 106 additions and 71 deletions

View File

@@ -28,6 +28,7 @@ static void app_loader_menu_callback(void* _ctx) {
FURI_LOG_I(APP_LOADER_TAG, "Starting furi application: %s", state.current_app->name);
furi_thread_set_name(state.thread, flipper_app->name);
furi_thread_set_stack_size(state.thread, flipper_app->stack_size);
furi_thread_set_context(state.thread, NULL);
furi_thread_set_callback(state.thread, flipper_app->app);
furi_thread_start(state.thread);
}