summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/vusb
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-04-01 21:06:22 +0100
committerFlorian Didron <fdidron@users.noreply.github.com>2020-06-12 17:00:27 +0900
commit3cc7234810250ca45a18399a08454f65c3a042b6 (patch)
treedaf5d0564e8b5d4f540a0080f6823d229990128c /tmk_core/protocol/vusb
parent9362382ac0cb3fb0f0d4c8ebbcdcf769fbba670a (diff)
Strip out features to allow minimum firmware sizes (#8645)
Diffstat (limited to 'tmk_core/protocol/vusb')
-rw-r--r--tmk_core/protocol/vusb/vusb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c
index bb84ec968f..867ffb33f2 100644
--- a/tmk_core/protocol/vusb/vusb.c
+++ b/tmk_core/protocol/vusb/vusb.c
@@ -159,10 +159,12 @@ typedef struct {
} __attribute__((packed)) vusb_mouse_report_t;
static void send_mouse(report_mouse_t *report) {
+#if defined(MOUSE_ENABLE)
vusb_mouse_report_t r = {.report_id = REPORT_ID_MOUSE, .report = *report};
if (usbInterruptIsReady3()) {
usbSetInterrupt3((void *)&r, sizeof(vusb_mouse_report_t));
}
+#endif
}
#ifdef EXTRAKEY_ENABLE