From 513d098051d7e543ab0648347b22cd5142ffdc84 Mon Sep 17 00:00:00 2001 From: Nikolay Minaylov Date: Thu, 19 May 2022 14:24:58 +0300 Subject: [PATCH] Fix cli session open on pin unlock (#1245) --- applications/desktop/helpers/pin_lock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/desktop/helpers/pin_lock.c b/applications/desktop/helpers/pin_lock.c index 00ac41778..d63398d96 100644 --- a/applications/desktop/helpers/pin_lock.c +++ b/applications/desktop/helpers/pin_lock.c @@ -100,11 +100,12 @@ void desktop_pin_lock_init(DesktopSettings* settings) { } else { furi_hal_rtc_set_pin_fails(0); furi_hal_rtc_reset_flag(FuriHalRtcFlagLock); - furi_hal_usb_enable(); } if(desktop_pin_lock_is_locked()) { - furi_hal_usb_disable(); + Cli* cli = furi_record_open("cli"); + cli_session_close(cli); + furi_record_close("cli"); } }