1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-04-30 13:52:38 +00:00

HID: fix polling interval logic

This commit is contained in:
Gyorgy Szombathelyi
2021-11-21 17:24:17 +01:00
parent a0f9d2f2b3
commit 2345eb6626

View File

@@ -919,7 +919,7 @@ static uint8_t usb_hid_poll(usb_device_t *dev) {
} else {
usb_process_iface ( iface, read, buf);
}
iface->qNextPollTime += iface->interval; // poll at requested rate
iface->qNextPollTime = timer_get_msec() + iface->interval; // poll at requested rate
}
} // end if known device
} // end for loop (bNumIfaces)