@ -10,7 +10,7 @@ void Storage_::save_primary_keymap(uint8_t keymap) {
uint8_t Storage_::load_primary_keymap(uint8_t keymap_count) {
uint8_t keymap = EEPROM.read(EEPROM_KEYMAP_LOCATION);
if (keymap >= keymap_count) {
return 0; // undefined positions get saved as 255
}
return 0; // return keymap;
@ -57,7 +57,7 @@ void handle_key_event(byte row, byte col) {
if (mappedKey.flags & SYNTHETIC_KEY) {
handle_synthetic_key_event(switchState, mappedKey);
} else if (key_is_pressed(switchState)) {
press_key(mappedKey);