summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2021-09-15 22:28:19 +0200
committerGitHub <noreply@github.com>2021-09-16 06:28:19 +1000
commit58d72ad7950287d51a99814221962e5459709389 (patch)
tree6d171d8ad36a727a39984b521d1e505bf7c30fbe
parenta677f00502f765b13e25de4b749b5576dae9ecf0 (diff)
core: fix compilation issues with USB programmable buttons (#14454)
Reported here: https://github.com/qmk/qmk_firmware/pull/12950#issuecomment-920329569
-rw-r--r--tmk_core/protocol/lufa/lufa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c
index cb3aa693b5..4a30d22579 100644
--- a/tmk_core/protocol/lufa/lufa.c
+++ b/tmk_core/protocol/lufa/lufa.c
@@ -761,6 +761,7 @@ static void send_mouse(report_mouse_t *report) {
#endif
}
+#if defined(EXTRAKEY_ENABLE) || defined(PROGRAMMABLE_BUTTON_ENABLE)
static void send_report(void *report, size_t size) {
uint8_t timeout = 255;
@@ -775,6 +776,7 @@ static void send_report(void *report, size_t size) {
Endpoint_Write_Stream_LE(report, size, NULL);
Endpoint_ClearIN();
}
+#endif
/** \brief Send Extra
*