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) {
|
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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user