From 29b865ed21d5e33cab14e444235218cfdd05ac9f Mon Sep 17 00:00:00 2001 From: Anna Antonenko Date: Mon, 7 Apr 2025 23:54:13 +0400 Subject: [PATCH] cli_vcp: reset tx flag directly in event handler --- applications/services/cli/cli_vcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/services/cli/cli_vcp.c b/applications/services/cli/cli_vcp.c index 8c32c1bfa..f23f813a2 100644 --- a/applications/services/cli/cli_vcp.c +++ b/applications/services/cli/cli_vcp.c @@ -106,6 +106,7 @@ static void cli_vcp_signal_internal_event(CliVcp* cli_vcp, CliVcpInternalEvent e static void cli_vcp_cdc_tx_done(void* context) { CliVcp* cli_vcp = context; + cli_vcp->is_currently_transmitting = false; cli_vcp_signal_internal_event(cli_vcp, CliVcpInternalEventTxDone); } @@ -202,7 +203,6 @@ static void cli_vcp_internal_event_happened(void* context) { if(event & CliVcpInternalEventTxDone) { VCP_TRACE(TAG, "TxDone"); - cli_vcp->is_currently_transmitting = false; cli_vcp_maybe_send_data(cli_vcp); }