HID fixes.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-09-22 14:05:39 +02:00
parent e1914556ec
commit 4ab68cc822
2 changed files with 33 additions and 8 deletions

View File

@@ -134,6 +134,8 @@ void usb_init() {
driver_init();
}
extern int driver_process_usb_nopacket();
static int usb_event_handle() {
uint16_t rx_read = usb_read_available();
if (driver_process_usb_packet(rx_read) > 0) {
@@ -141,6 +143,8 @@ static int usb_event_handle() {
queue_add_blocking(&usb_to_card_q, &flag);
timeout_start();
}
else
driver_process_usb_nopacket();
return 0;
}