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:
parent
e1dd57067e
commit
0745838e3f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue