summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/q1/q1.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/q1/q1.c')
-rw-r--r--keyboards/keychron/q1/q1.c5
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