diff options
Diffstat (limited to 'keyboards/keychron/q1/q1.c')
-rw-r--r-- | keyboards/keychron/q1/q1.c | 9 |
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; +} |