diff options
Diffstat (limited to 'tmk_core/protocol/vusb/vusb.c')
-rw-r--r-- | tmk_core/protocol/vusb/vusb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c index 95c59d493..00314ebe8 100644 --- a/tmk_core/protocol/vusb/vusb.c +++ b/tmk_core/protocol/vusb/vusb.c | |||
@@ -158,10 +158,12 @@ typedef struct { | |||
158 | } __attribute__((packed)) vusb_mouse_report_t; | 158 | } __attribute__((packed)) vusb_mouse_report_t; |
159 | 159 | ||
160 | static void send_mouse(report_mouse_t *report) { | 160 | static void send_mouse(report_mouse_t *report) { |
161 | #if defined(MOUSE_ENABLE) | ||
161 | vusb_mouse_report_t r = {.report_id = REPORT_ID_MOUSE, .report = *report}; | 162 | vusb_mouse_report_t r = {.report_id = REPORT_ID_MOUSE, .report = *report}; |
162 | if (usbInterruptIsReady3()) { | 163 | if (usbInterruptIsReady3()) { |
163 | usbSetInterrupt3((void *)&r, sizeof(vusb_mouse_report_t)); | 164 | usbSetInterrupt3((void *)&r, sizeof(vusb_mouse_report_t)); |
164 | } | 165 | } |
166 | #endif | ||
165 | } | 167 | } |
166 | 168 | ||
167 | #ifdef EXTRAKEY_ENABLE | 169 | #ifdef EXTRAKEY_ENABLE |