mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +04:00
Desktop: Fix freeze on boot if PIN set (#4193)
This commit is contained in:
@@ -164,7 +164,7 @@ static void cli_vcp_message_received(FuriEventLoopObject* object, void* context)
|
||||
|
||||
switch(message.type) {
|
||||
case CliVcpMessageTypeEnable:
|
||||
if(cli_vcp->is_enabled) return;
|
||||
if(cli_vcp->is_enabled) break;
|
||||
FURI_LOG_D(TAG, "Enabling");
|
||||
cli_vcp->is_enabled = true;
|
||||
|
||||
@@ -175,7 +175,7 @@ static void cli_vcp_message_received(FuriEventLoopObject* object, void* context)
|
||||
break;
|
||||
|
||||
case CliVcpMessageTypeDisable:
|
||||
if(!cli_vcp->is_enabled) return;
|
||||
if(!cli_vcp->is_enabled) break;
|
||||
FURI_LOG_D(TAG, "Disabling");
|
||||
cli_vcp->is_enabled = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user