Fix when receiving a packet in the middle of a transmission. RX shall be always processed.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-08-20 16:39:44 +02:00
parent e1dd57067e
commit 0745838e3f
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -315,7 +315,7 @@ extern const uint8_t fido_aid[], u2f_aid[];
int driver_process_usb_packet_hid(uint16_t read) {
int apdu_sent = 0;
if (read >= 5 && send_buffer_size[ITF_HID] == 0) {
if (read >= 5) {
driver_init_hid();
last_packet_time = board_millis();
DEBUG_PAYLOAD(usb_get_rx(ITF_HID) + usb_get_r_offset(ITF_HID), 64);