Fix hopefully the last race condition for tx_busy handling.

This commit is contained in:
NIIBE Yutaka
2018-12-01 23:28:19 +09:00
parent 7249775c17
commit fc36773c6a
2 changed files with 5 additions and 1 deletions

View File

@@ -1800,7 +1800,7 @@ ccid_thread (void *arg)
}
#ifdef ACKBTN_SUPPORT
if (ack_intr.ready)
if (c->tx_busy && ack_intr.ready)
{
ackbtn_disable ();
chopstx_intr_done (&ack_intr);