[Keyboard] Fix Q1 change dip switch to bool (#13687)
parent
d972919204
commit
ab42945c9a
|
@ -25,11 +25,12 @@ 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));
|
||||
}
|
||||
dip_switch_update_user(index, active);
|
||||
return true;
|
||||
}
|
||||
|
||||
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
|
||||
|
|
Loading…
Reference in New Issue