diff options
Diffstat (limited to 'quantum/oryx.c')
-rw-r--r-- | quantum/oryx.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/quantum/oryx.c b/quantum/oryx.c index 7650fadc0b..ef4efd1924 100644 --- a/quantum/oryx.c +++ b/quantum/oryx.c @@ -236,18 +236,16 @@ void eeconfig_init_oryx(void) { // reread settings from flash into eeprom dynamic_keymap_reset(); dynamic_keymap_macro_reset(); - eeprom_update_block(FIRMWARE_VERSION, (uint8_t *)EECONFIG_SIZE, sizeof(uint8_t)*17); + eeprom_update_block(FIRMWARE_VERSION, (uint8_t *)EECONFIG_SIZE, sizeof(uint8_t)*FIRMWARE_VERSION_SIZE); } -// since I'm being lazy, ATM -void matrix_setup(void) { - uint8_t temp[17]; - uint8_t firmware[17] = FIRMWARE_VERSION; - eeprom_read_block(&temp, (uint8_t *)EECONFIG_SIZE, sizeof(uint8_t)*17); - if (!memcmp(&temp, &firmware, sizeof(uint8_t)*17)) { +void matrix_init_oryx(void) { + uint8_t temp[FIRMWARE_VERSION_SIZE]; + uint8_t firmware[FIRMWARE_VERSION_SIZE] = FIRMWARE_VERSION; + eeprom_read_block(&temp, (uint8_t *)EECONFIG_SIZE, sizeof(uint8_t)*FIRMWARE_VERSION_SIZE); + if (!memcmp(&temp, &firmware, sizeof(uint8_t)*FIRMWARE_VERSION_SIZE)) { eeconfig_init_oryx(); } } -// FIRMWARE_VERSION #endif |