diff options
author | tmk <nobody@nowhere> | 2013-04-07 15:36:50 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-04-07 15:36:50 +0900 |
commit | 4e93b3fa67d3b8170de2f05322738e08ac17948e (patch) | |
tree | 46b5191bd9e6c591bc13e05aa97a0454f30b1897 /common/eeconfig.c | |
parent | 78fd5a715464e72df08bcf683ca45b63c2df490f (diff) | |
download | qmk_firmware-4e93b3fa67d3b8170de2f05322738e08ac17948e.tar.gz |
Fix bootmagic and eeconfig for virtual DIP SW
Diffstat (limited to 'common/eeconfig.c')
-rw-r--r-- | common/eeconfig.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/common/eeconfig.c b/common/eeconfig.c index cea3810ee..0481d4b9c 100644 --- a/common/eeconfig.c +++ b/common/eeconfig.c @@ -3,13 +3,12 @@ #include <avr/eeprom.h> #include "eeconfig.h" - void eeconfig_init(void) { eeprom_write_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER); eeprom_write_byte(EECONFIG_DEBUG, 0); eeprom_write_byte(EECONFIG_DEFAULT_LAYER, 0); - eeprom_write_byte(EECONFIG_KEYCONF, 0); + eeprom_write_byte(EECONFIG_KEYMAP, 0); eeprom_write_byte(EECONFIG_MOUSEKEY_ACCEL, 0); } @@ -25,7 +24,7 @@ void eeconfig_disable(void) bool eeconfig_is_enabled(void) { - return EECONFIG_IS_ENABLED() && (eeprom_read_word(EECONFIG_MAGIC) == EECONFIG_MAGIC_NUMBER); + return (eeprom_read_word(EECONFIG_MAGIC) == EECONFIG_MAGIC_NUMBER); } uint8_t eeconfig_read_debug(void) { return eeprom_read_byte(EECONFIG_DEBUG); } @@ -34,5 +33,5 @@ void eeconfig_write_debug(uint8_t val) { eeprom_write_byte(EECONFIG_DEBUG, val); uint8_t eeconfig_read_defalt_layer(void) { return eeprom_read_byte(EECONFIG_DEFAULT_LAYER); } void eeconfig_write_defalt_layer(uint8_t val) { eeprom_write_byte(EECONFIG_DEFAULT_LAYER, val); } -uint8_t eeconfig_read_keyconf(void) { return eeprom_read_byte(EECONFIG_KEYCONF); } -void eeconfig_write_keyconf(uint8_t val) { eeprom_write_byte(EECONFIG_KEYCONF, val); } +uint8_t eeconfig_read_keymap(void) { return eeprom_read_byte(EECONFIG_KEYMAP); } +void eeconfig_write_keymap(uint8_t val) { eeprom_write_byte(EECONFIG_KEYMAP, val); } |