mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Reducing the timeout to be catched by the host
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
cf23fb45ba
commit
b6eaac895d
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue