Thread on CORE1 is reset at every call.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-12-22 20:39:01 +01:00
parent 3310b911fc
commit b0bfc410a4
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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)