Reducing the timeout to be catched by the host

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-01-19 01:16:24 +01:00
parent cf23fb45ba
commit b6eaac895d
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -243,7 +243,7 @@ static void ccid_notify_slot_change(struct ccid *c)
}
*/
#define USB_CCID_TIMEOUT (1950*1000)
#define USB_CCID_TIMEOUT (50)
#define GPG_THREAD_TERMINATED 0xffff
#define GPG_ACK_TIMEOUT 0x6600
@ -1477,7 +1477,6 @@ void ccid_task(void)
timeout -= MIN(board_millis()-prev_millis,timeout);
if (timeout == 0)
{
TU_LOG3("timeout is 0\r\n");
if (c->timeout_cnt == 7 && c->ccid_state == CCID_STATE_ACK_REQUIRED_1)
{
c->a->sw = GPG_ACK_TIMEOUT;