summaryrefslogtreecommitdiff
path: root/keyboards/keychron/q1/q1.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-08-29 08:20:25 +1000
committerNick Brassel <nick@tzarc.org>2021-08-29 08:20:25 +1000
commitf061ca497464fe85284906fb163a33eaee7a91ef (patch)
tree33ef1bfb529aed382e8526c607c4e18717f92571 /keyboards/keychron/q1/q1.c
parentff65185dec6f97be1eb49f17cea526a0d0bbf3d6 (diff)
parent4bad375d7c09d949a9dcdd4feba147c9c7a67ec6 (diff)
Breaking changes develop merge to master, 2021Q3 edition. (#14196)
Diffstat (limited to 'keyboards/keychron/q1/q1.c')
-rw-r--r--keyboards/keychron/q1/q1.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/keyboards/keychron/q1/q1.c b/keyboards/keychron/q1/q1.c
index b496e278e8..a316c1fdcf 100644
--- a/keyboards/keychron/q1/q1.c
+++ b/keyboards/keychron/q1/q1.c
@@ -26,9 +26,10 @@ const matrix_row_t matrix_mask[] = {
0b0111111111111111,
};
-void dip_switch_update_kb(uint8_t index, bool active) {
+bool dip_switch_update_kb(uint8_t index, bool active) {
+ if (!dip_switch_update_user(index, active)) { return false;}
if (index == 0) {
- default_layer_set(1UL << (active ? 2 : 0));
+ default_layer_set(1UL << (active ? 2 : 0));
}
- dip_switch_update_user(index, active);
-} \ No newline at end of file
+ return true;
+}