aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/protocol/lufa/lufa.c
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 /tmk_core/protocol/lufa/lufa.c
parenta677f00502f765b13e25de4b749b5576dae9ecf0 (diff)
downloadqmk_firmware-58d72ad7950287d51a99814221962e5459709389.tar.gz
qmk_firmware-58d72ad7950287d51a99814221962e5459709389.zip
core: fix compilation issues with USB programmable buttons (#14454)
Reported here: https://github.com/qmk/qmk_firmware/pull/12950#issuecomment-920329569
Diffstat (limited to 'tmk_core/protocol/lufa/lufa.c')
-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 cb3aa693b..4a30d2257 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) {
761#endif 761#endif
762} 762}
763 763
764#if defined(EXTRAKEY_ENABLE) || defined(PROGRAMMABLE_BUTTON_ENABLE)
764static void send_report(void *report, size_t size) { 765static void send_report(void *report, size_t size) {
765 uint8_t timeout = 255; 766 uint8_t timeout = 255;
766 767
@@ -775,6 +776,7 @@ static void send_report(void *report, size_t size) {
775 Endpoint_Write_Stream_LE(report, size, NULL); 776 Endpoint_Write_Stream_LE(report, size, NULL);
776 Endpoint_ClearIN(); 777 Endpoint_ClearIN();
777} 778}
779#endif
778 780
779/** \brief Send Extra 781/** \brief Send Extra
780 * 782 *