summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/vusb
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-09-03 06:50:36 +1000
committerGitHub <noreply@github.com>2022-09-02 21:50:36 +0100
commitf76b55d5add98a70331338d4bee11ffd963a886a (patch)
tree2787993bb42b22dd284e5aa48fc7526fbfd8a050 /tmk_core/protocol/vusb
parent09d668eb0ed3ff6fa48ce1db98910b022bca2d90 (diff)
Adjust `EXTRAKEY_ENABLE` ifdefs for `send_extra()` (#18249)
Diffstat (limited to 'tmk_core/protocol/vusb')
-rw-r--r--tmk_core/protocol/vusb/vusb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c
index ed90b1151a..013d637b6f 100644
--- a/tmk_core/protocol/vusb/vusb.c
+++ b/tmk_core/protocol/vusb/vusb.c
@@ -268,8 +268,8 @@ static void send_mouse(report_mouse_t *report) {
#endif
}
-#ifdef EXTRAKEY_ENABLE
static void send_extra(uint8_t report_id, uint16_t data) {
+#ifdef EXTRAKEY_ENABLE
static uint8_t last_id = 0;
static uint16_t last_data = 0;
if ((report_id == last_id) && (data == last_data)) return;
@@ -281,8 +281,8 @@ static void send_extra(uint8_t report_id, uint16_t data) {
if (usbInterruptIsReadyShared()) {
usbSetInterruptShared((void *)&report, sizeof(report_extra_t));
}
-}
#endif
+}
void send_digitizer(report_digitizer_t *report) {
#ifdef DIGITIZER_ENABLE