mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-03 14:32:05 +00:00
inland/kb83
: Remove unnecessary EEPROM write (#25401)
There's no reason to save the base layer to EEPROM when the base layer is set based on DIP switch.
This commit is contained in:
parent
e15d9ca4b3
commit
6e55870a82
@ -313,11 +313,7 @@ bool dip_switch_update_kb(uint8_t index, bool active) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
default_layer_set(1UL << (active ? 2 : 0));
|
default_layer_set(1UL << (active ? MAC_B : WIN_B));
|
||||||
}
|
|
||||||
if(active){
|
|
||||||
keymap_config.no_gui = 0;
|
|
||||||
eeconfig_update_keymap(&keymap_config);
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user