1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

Desktop: Fix freeze on boot if PIN set (#4193)

This commit is contained in:
WillyJL
2025-04-18 05:52:15 +01:00
committed by GitHub
parent 34a3222ec4
commit c420cbb1a5

View File

@@ -164,7 +164,7 @@ static void cli_vcp_message_received(FuriEventLoopObject* object, void* context)
switch(message.type) { switch(message.type) {
case CliVcpMessageTypeEnable: case CliVcpMessageTypeEnable:
if(cli_vcp->is_enabled) return; if(cli_vcp->is_enabled) break;
FURI_LOG_D(TAG, "Enabling"); FURI_LOG_D(TAG, "Enabling");
cli_vcp->is_enabled = true; cli_vcp->is_enabled = true;
@@ -175,7 +175,7 @@ static void cli_vcp_message_received(FuriEventLoopObject* object, void* context)
break; break;
case CliVcpMessageTypeDisable: case CliVcpMessageTypeDisable:
if(!cli_vcp->is_enabled) return; if(!cli_vcp->is_enabled) break;
FURI_LOG_D(TAG, "Disabling"); FURI_LOG_D(TAG, "Disabling");
cli_vcp->is_enabled = false; cli_vcp->is_enabled = false;