Skip to content

Commit 6e55870

Browse files
authored
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.
1 parent e15d9ca commit 6e55870

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

keyboards/inland/kb83/kb83.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,7 @@ bool dip_switch_update_kb(uint8_t index, bool active) {
313313
return false;
314314
}
315315
if (index == 0) {
316-
default_layer_set(1UL << (active ? 2 : 0));
317-
}
318-
if(active){
319-
keymap_config.no_gui = 0;
320-
eeconfig_update_keymap(&keymap_config);
316+
default_layer_set(1UL << (active ? MAC_B : WIN_B));
321317
}
322318
return true;
323319
}

0 commit comments

Comments
 (0)