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

master
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
1 changed files with 13 additions and 12 deletions

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