summaryrefslogtreecommitdiff
path: root/vusb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-07-02 14:27:14 +0900
committertmk <nobody@nowhere>2011-07-02 14:27:14 +0900
commitf382fc93d5cbee8209069d5da590177b8dbd4a02 (patch)
tree19aaea7e3b7a64e054e4a78d0a64ff8c3c3f5589 /vusb
parent1bda8a8c69e7b1e5e62233d9f5a63d0dca0ef4fb (diff)
Change layer pram and keymap of HHKB. Fix vusb/host.c.
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;
}