summaryrefslogtreecommitdiffstats
path: root/quantum/encoder/tests/mock_split.c
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-11-13 07:51:19 -0800
committerGitHub <noreply@github.com>2022-11-14 02:51:19 +1100
commit8812872794b5fb09e6bbbe47a58cc7dbcaca18a7 (patch)
treea2c955723763d3a4402fcc39df6137b4b14d25df /quantum/encoder/tests/mock_split.c
parent4c1d8a0eb33e5738f305191dfb7a56f8b0275827 (diff)
Only trigger encoder callbacks on primary side (#18467)
Co-authored-by: zvecr <git@zvecr.com>
Diffstat (limited to 'quantum/encoder/tests/mock_split.c')
-rw-r--r--quantum/encoder/tests/mock_split.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/encoder/tests/mock_split.c b/quantum/encoder/tests/mock_split.c
index dd3c26d958..5cc6cd19e1 100644
--- a/quantum/encoder/tests/mock_split.c
+++ b/quantum/encoder/tests/mock_split.c
@@ -36,3 +36,7 @@ bool setPin(pin_t pin, bool val) {
}
void last_encoder_activity_trigger(void) {}
+
+__attribute__((weak)) bool is_keyboard_master(void) {
+ return true;
+}