diff options
author | lalalademaxiya1 <[email protected]> | 2022-12-09 00:43:28 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-09 03:43:28 +1100 |
commit | 1215fc2a782100bfd6577e1826f8c7e46be137ca (patch) | |
tree | e8c80e0d7c1234c0e44c38daf48a9a3c456dd441 /keyboards/keychron/q1/q1.c | |
parent | 6e6039995beebcaf0126d90db344728f0b8de827 (diff) | |
download | qmk_firmware-1215fc2a782100bfd6577e1826f8c7e46be137ca.tar.gz qmk_firmware-1215fc2a782100bfd6577e1826f8c7e46be137ca.zip |
Update Q1 and Q2 for keychron (#18713)
Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: jpe230 <[email protected]>
Diffstat (limited to 'keyboards/keychron/q1/q1.c')
-rw-r--r-- | keyboards/keychron/q1/q1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/keyboards/keychron/q1/q1.c b/keyboards/keychron/q1/q1.c index a316c1fdcf..aa0789e852 100644 --- a/keyboards/keychron/q1/q1.c +++ b/keyboards/keychron/q1/q1.c @@ -16,7 +16,6 @@ #include "q1.h" - const matrix_row_t matrix_mask[] = { 0b0111111111111101, 0b0111111111111111, @@ -26,6 +25,8 @@ const matrix_row_t matrix_mask[] = { 0b0111111111111111, }; +#ifdef DIP_SWITCH_ENABLE + bool dip_switch_update_kb(uint8_t index, bool active) { if (!dip_switch_update_user(index, active)) { return false;} if (index == 0) { @@ -33,3 +34,5 @@ bool dip_switch_update_kb(uint8_t index, bool active) { } return true; } + +#endif // DIP_SWITCH_ENABLE |