mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-12 20:38:36 -07:00
Temporarily backport app updates from apps repo
This commit is contained in:
15
applications/external/cli_bridge/cligui_main.c
vendored
15
applications/external/cli_bridge/cligui_main.c
vendored
@@ -67,14 +67,6 @@ static void input_callback_wrapper(InputEvent* event, void* context) {
|
||||
|
||||
int32_t cligui_main(void* p) {
|
||||
UNUSED(p);
|
||||
|
||||
// Unlock loader-lock and save app thread
|
||||
FuriThread* temp_save_appthr;
|
||||
Loader* loader = furi_record_open(RECORD_LOADER);
|
||||
temp_save_appthr = loader->app.thread;
|
||||
loader->app.thread = NULL;
|
||||
furi_record_close(RECORD_LOADER);
|
||||
|
||||
CliguiApp* cligui = malloc(sizeof(CliguiApp));
|
||||
cligui->data = malloc(sizeof(CliguiData));
|
||||
|
||||
@@ -137,10 +129,5 @@ int32_t cligui_main(void* p) {
|
||||
free(cligui->data);
|
||||
free(cligui);
|
||||
|
||||
// We restoring previous app thread here, we love kostily and velosipedy, bydlo kod forever!
|
||||
loader = furi_record_open(RECORD_LOADER);
|
||||
loader->app.thread = temp_save_appthr;
|
||||
furi_record_close(RECORD_LOADER);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user