From 8dfbf6345231c4e97c849797650435fe8e7f8ff4 Mon Sep 17 00:00:00 2001 From: Deon Spengler Date: Sat, 16 Jul 2022 20:56:25 +0200 Subject: [PATCH] Fix compile bug when acknowledgement button is disabled --- src/usb-ccid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/usb-ccid.c b/src/usb-ccid.c index e76a1f3..4052817 100644 --- a/src/usb-ccid.c +++ b/src/usb-ccid.c @@ -1929,6 +1929,7 @@ ccid_thread (void *arg) } else /* Timeout */ { +#ifdef ACKBTN_SUPPORT if (c->timeout_cnt == 7 && c->ccid_state == CCID_STATE_ACK_REQUIRED_1) { @@ -1940,6 +1941,7 @@ ccid_thread (void *arg) goto exec_done; } else +#endif c->ccid_state = ccid_handle_timeout (c); } }