1
0
Fork 0

[Keyboard] Fix Q1 change dip switch to bool (#13687)

This commit is contained in:
Dasky 2021-07-24 18:45:34 +01:00 committed by GitHub
parent d972919204
commit ab42945c9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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] = {