From b0bfc410a4c347cca7ae09aeb304339c25320de1 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Thu, 22 Dec 2022 20:39:01 +0100 Subject: [PATCH] Thread on CORE1 is reset at every call. Signed-off-by: Pol Henarejos --- src/usb/hid/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usb/hid/hid.c b/src/usb/hid/hid.c index 0bd60ce..b11c166 100644 --- a/src/usb/hid/hid.c +++ b/src/usb/hid/hid.c @@ -287,7 +287,7 @@ int driver_process_usb_packet_hid(uint16_t read) { } } } - if (thread_type != 1) + //if (thread_type != 1) card_start(apdu_thread); thread_type = 1; @@ -301,7 +301,7 @@ int driver_process_usb_packet_hid(uint16_t read) { } else if ((last_cmd == CTAPHID_CBOR || (last_cmd >= CTAPHID_VENDOR_FIRST && last_cmd <= CTAPHID_VENDOR_LAST)) && (msg_packet.len == 0 || (msg_packet.len == msg_packet.current_len && msg_packet.len > 0))) { - if (thread_type != 2) + //if (thread_type != 2) card_start(cbor_thread); thread_type = 2; if (msg_packet.current_len == msg_packet.len && msg_packet.len > 0)