Fix compile bug when acknowledgement button is disabled

This commit is contained in:
2022-07-16 20:56:25 +02:00
parent b9f6c3be7a
commit 8dfbf63452

View File

@@ -1929,6 +1929,7 @@ ccid_thread (void *arg)
} }
else /* Timeout */ else /* Timeout */
{ {
#ifdef ACKBTN_SUPPORT
if (c->timeout_cnt == 7 if (c->timeout_cnt == 7
&& c->ccid_state == CCID_STATE_ACK_REQUIRED_1) && c->ccid_state == CCID_STATE_ACK_REQUIRED_1)
{ {
@@ -1940,6 +1941,7 @@ ccid_thread (void *arg)
goto exec_done; goto exec_done;
} }
else else
#endif
c->ccid_state = ccid_handle_timeout (c); c->ccid_state = ccid_handle_timeout (c);
} }
} }