summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/q2/q2.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-12-08 16:44:03 +0000
committerQMK Bot <hello@qmk.fm>2022-12-08 16:44:03 +0000
commite06f50c489e02068465dfb3e5b3c7473006e6273 (patch)
tree91401c338f2e8567c01c28221250de1107ba40cb /keyboards/keychron/q2/q2.c
parent5a2ed77a086386dae7c10eed7bda54253dc8177e (diff)
parent1215fc2a782100bfd6577e1826f8c7e46be137ca (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/keychron/q2/q2.c')
-rw-r--r--keyboards/keychron/q2/q2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/keychron/q2/q2.c b/keyboards/keychron/q2/q2.c
index 03d1ee7db5..7a8edd8016 100644
--- a/keyboards/keychron/q2/q2.c
+++ b/keyboards/keychron/q2/q2.c
@@ -24,6 +24,8 @@ const matrix_row_t matrix_mask[] = {
0b1111111111101111,
};
+#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) {
@@ -31,3 +33,5 @@ bool dip_switch_update_kb(uint8_t index, bool active) {
}
return true;
}
+
+#endif // DIP_SWITCH_ENABLE