diff --git a/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_lockscreen.c b/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_lockscreen.c index 836005002..394dc0d0c 100644 --- a/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_lockscreen.c +++ b/applications/main/xtreme_app/scenes/xtreme_app_scene_interface_lockscreen.c @@ -32,7 +32,8 @@ static void xtreme_app_scene_interface_lockscreen_bad_pins_format_changed(Variab app->save_settings = true; } -static void xtreme_app_scene_interface_lockscreen_allow_locked_rpc_commands_changed(VariableItem* item) { +static void + xtreme_app_scene_interface_lockscreen_allow_locked_rpc_commands_changed(VariableItem* item) { XtremeApp* app = variable_item_get_context(item); bool value = variable_item_get_current_value_index(item); variable_item_set_current_value_text(item, value ? "ON" : "OFF"); diff --git a/applications/services/bt/bt_service/bt.c b/applications/services/bt/bt_service/bt.c index f38ee98ce..effd09d61 100644 --- a/applications/services/bt/bt_service/bt.c +++ b/applications/services/bt/bt_service/bt.c @@ -250,7 +250,6 @@ void bt_close_rpc_connection(Bt* bt) { } } - // Called from GAP thread static bool bt_on_gap_event_callback(GapEvent event, void* context) { furi_assert(context); diff --git a/applications/services/desktop/desktop.c b/applications/services/desktop/desktop.c index 08e0be53f..9771cb016 100644 --- a/applications/services/desktop/desktop.c +++ b/applications/services/desktop/desktop.c @@ -242,7 +242,7 @@ void desktop_lock(Desktop* desktop, bool pin_lock) { Cli* cli = furi_record_open(RECORD_CLI); cli_session_close(cli); furi_record_close(RECORD_CLI); - if (!XTREME_SETTINGS()->allow_locked_rpc_commands) { + if(!XTREME_SETTINGS()->allow_locked_rpc_commands) { Bt* bt = furi_record_open(RECORD_BT); bt_close_rpc_connection(bt); furi_record_close(RECORD_BT); diff --git a/applications/services/rpc/rpc.c b/applications/services/rpc/rpc.c index 3ca3bcdd0..b67e05125 100644 --- a/applications/services/rpc/rpc.c +++ b/applications/services/rpc/rpc.c @@ -365,7 +365,8 @@ static void rpc_session_thread_state_callback(FuriThreadState thread_state, void } RpcSession* rpc_session_open(Rpc* rpc, RpcOwner owner) { - if(!furi_hal_rtc_is_flag_set(FuriHalRtcFlagLock) || XTREME_SETTINGS()->allow_locked_rpc_commands) { + if(!furi_hal_rtc_is_flag_set(FuriHalRtcFlagLock) || + XTREME_SETTINGS()->allow_locked_rpc_commands) { furi_assert(rpc); RpcSession* session = malloc(sizeof(RpcSession));