mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-07 19:01:54 -07:00
CLI: Fix VCP with lock on boot + allow locked RPC
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user