summaryrefslogtreecommitdiff
path: root/vusb
diff options
context:
space:
mode:
Diffstat (limited to 'vusb')
-rw-r--r--vusb/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vusb/host.c b/vusb/host.c
index 0a507d4820..590d2363b8 100644
--- a/vusb/host.c
+++ b/vusb/host.c
@@ -115,7 +115,7 @@ static uint8_t kbuf_tail = 0;
void host_vusb_keyboard_send(void)
{
- while (usbInterruptIsReady() && kbuf_head != kbuf_tail) {
+ if (usbInterruptIsReady() && kbuf_head != kbuf_tail) {
usbSetInterrupt((void *)&kbuf[kbuf_tail], sizeof(report_keyboard_t));
kbuf_tail = (kbuf_tail + 1) % KBUF_SIZE;
}