diff options
| author | tmk <nobody@nowhere> | 2012-10-17 03:44:01 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2012-10-17 15:55:37 +0900 |
| commit | 30eb3e3520e9d4d7b9a9dbac0c5c0200485103c2 (patch) | |
| tree | c95f8e39411cf05e5f393948b3a3a1b85deec5b9 /protocol/vusb/vusb.c | |
| parent | 8f7ed2bc1902cdeeb78c49f4833816a33cd6d3a0 (diff) | |
| download | qmk_firmware-30eb3e3520e9d4d7b9a9dbac0c5c0200485103c2.tar.gz qmk_firmware-30eb3e3520e9d4d7b9a9dbac0c5c0200485103c2.zip | |
Add command console and mouseky parameters tweak.
Diffstat (limited to 'protocol/vusb/vusb.c')
| -rw-r--r-- | protocol/vusb/vusb.c | 10 |
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 | } |
