aboutsummaryrefslogtreecommitdiff
path: root/protocol/vusb/vusb.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/vusb/vusb.c')
-rw-r--r--protocol/vusb/vusb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocol/vusb/vusb.c b/protocol/vusb/vusb.c
index 59834e691..1d5f4a852 100644
--- a/protocol/vusb/vusb.c
+++ b/protocol/vusb/vusb.c
@@ -42,12 +42,12 @@ void vusb_transfer_keyboard(void)
42 if (usbInterruptIsReady()) { 42 if (usbInterruptIsReady()) {
43 if (kbuf_head != kbuf_tail) { 43 if (kbuf_head != kbuf_tail) {
44 usbSetInterrupt((void *)&kbuf[kbuf_tail], sizeof(report_keyboard_t)); 44 usbSetInterrupt((void *)&kbuf[kbuf_tail], sizeof(report_keyboard_t));
45 if (!debug_keyboard) {
46 print("keys: ");
47 for (int i = 0; i < REPORT_KEYS; i++) { phex(kbuf[kbuf_tail].keys[i]); print(" "); }
48 print(" mods: "); phex((kbuf[kbuf_tail]).mods); print("\n");
49 }
50 kbuf_tail = (kbuf_tail + 1) % KBUF_SIZE; 45 kbuf_tail = (kbuf_tail + 1) % KBUF_SIZE;
46 if (debug_keyboard) {
47 print("V-USB: kbuf["); pdec(kbuf_tail); print("->"); pdec(kbuf_head); print("](");
48 phex((kbuf_head < kbuf_tail) ? (KBUF_SIZE - kbuf_tail + kbuf_head) : (kbuf_head - kbuf_tail));
49 print(")\n");
50 }
51 } 51 }
52 } 52 }
53} 53}