From e7fd9a43cc088305e8a61b5a3a37f281b979ee7e Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Fri, 4 Apr 2025 14:57:46 +0100 Subject: [PATCH] CLI: Fix VCP with lock on boot + allow locked RPC --- applications/services/desktop/desktop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applications/services/desktop/desktop.c b/applications/services/desktop/desktop.c index aea40112a..66f6c57c5 100644 --- a/applications/services/desktop/desktop.c +++ b/applications/services/desktop/desktop.c @@ -556,10 +556,13 @@ int32_t desktop_srv(void* p) { scene_manager_next_scene(desktop->scene_manager, DesktopSceneMain); + bool enable_cli_vcp = true; if(desktop_pin_code_is_set() && (momentum_settings.lock_on_boot || furi_hal_rtc_is_flag_set(FuriHalRtcFlagLock))) { + enable_cli_vcp = momentum_settings.allow_locked_rpc_usb; desktop_lock(desktop, true); - } else { + } + if(enable_cli_vcp) { CliVcp* cli_vcp = furi_record_open(RECORD_CLI_VCP); cli_vcp_enable(cli_vcp); furi_record_close(RECORD_CLI_VCP);