diff --git a/applications/app-loader/app-loader.c b/applications/app-loader/app-loader.c index 1c7219cb..81a9d84c 100644 --- a/applications/app-loader/app-loader.c +++ b/applications/app-loader/app-loader.c @@ -28,7 +28,7 @@ void render_callback(CanvasApi* canvas, void* _ctx) { void input_callback(InputEvent* input_event, void* _ctx) { AppLoaderState* ctx = (AppLoaderState*)_ctx; - if(input_event->state && input_event->input == InputBack){ + if(input_event->state && input_event->input == InputBack) { furiac_kill(ctx->handler); widget_enabled_set(ctx->widget, false); } @@ -94,12 +94,8 @@ void app_loader(void* p) { ctx->state = &state; ctx->app = &FLIPPER_APPS[i]; - menu_item_add(menu, menu_item_alloc_function( - FLIPPER_APPS[i].name, - NULL, - handle_menu, - ctx - )); + menu_item_add( + menu, menu_item_alloc_function(FLIPPER_APPS[i].name, NULL, handle_menu, ctx)); } /* diff --git a/applications/menu/menu.c b/applications/menu/menu.c index 70bb3b07..b305c4cb 100644 --- a/applications/menu/menu.c +++ b/applications/menu/menu.c @@ -74,7 +74,7 @@ void menu_settings_item_add(Menu* menu, MenuItem* item) { void menu_widget_callback(CanvasApi* canvas, void* context) { assert(canvas); assert(context); - + Menu* menu = acquire_mutex((ValueMutex*)context, 100); // wait 10 ms to get mutex if(menu == NULL) return; // redraw fail @@ -97,7 +97,6 @@ void menu_widget_callback(CanvasApi* canvas, void* context) { } release_mutex((ValueMutex*)context, menu); - } void menu_update(Menu* menu) { @@ -195,7 +194,6 @@ void menu_task(void* p) { Menu* menu = acquire_mutex_block(menu_mutex); if(!menu->current && m.type != MenuMessageTypeOk) { - } else if(m.type == MenuMessageTypeUp) { menu_up(menu); } else if(m.type == MenuMessageTypeDown) {