summaryrefslogtreecommitdiff
path: root/tmk_core/protocol/arm_atsam
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/arm_atsam
parent09d668eb0ed3ff6fa48ce1db98910b022bca2d90 (diff)
Adjust `EXTRAKEY_ENABLE` ifdefs for `send_extra()` (#18249)
Diffstat (limited to 'tmk_core/protocol/arm_atsam')
-rw-r--r--tmk_core/protocol/arm_atsam/main_arm_atsam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/protocol/arm_atsam/main_arm_atsam.c b/tmk_core/protocol/arm_atsam/main_arm_atsam.c
index a2f20db66e..0537e3937d 100644
--- a/tmk_core/protocol/arm_atsam/main_arm_atsam.c
+++ b/tmk_core/protocol/arm_atsam/main_arm_atsam.c
@@ -113,8 +113,8 @@ void send_mouse(report_mouse_t *report) {
#endif // MOUSEKEY_ENABLE
}
-#ifdef EXTRAKEY_ENABLE
void send_extra(uint8_t report_id, uint16_t data) {
+#ifdef EXTRAKEY_ENABLE
uint32_t irqflags;
irqflags = __get_PRIMASK();
@@ -128,8 +128,8 @@ void send_extra(uint8_t report_id, uint16_t data) {
__DMB();
__set_PRIMASK(irqflags);
-}
#endif // EXTRAKEY_ENABLE
+}
#ifdef CONSOLE_ENABLE
# define CONSOLE_PRINTBUF_SIZE 512