Really fix the last race condition.

Fixes the commit of fc36773.
This commit is contained in:
NIIBE Yutaka
2018-12-06 12:09:42 +09:00
parent c17fd5401b
commit 8d15086d06
2 changed files with 7 additions and 5 deletions

View File

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