diff options
author | Joel Challis <git@zvecr.com> | 2024-03-14 10:45:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 21:45:03 +1100 |
commit | 4bbfecae90e994b4a7d9bf5db06a995fb05d6ab2 (patch) | |
tree | 51d3ca05791953a67c972841a6605e8cca19c481 /quantum/eeconfig.c | |
parent | 6720e9c58c3a239ff0de4be1ff2ad075a0b2c248 (diff) |
Infer eeconfig identifiers (#22135)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum/eeconfig.c')
-rw-r--r-- | quantum/eeconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/eeconfig.c b/quantum/eeconfig.c index 2d2180b4b4..40690d6a97 100644 --- a/quantum/eeconfig.c +++ b/quantum/eeconfig.c @@ -19,6 +19,8 @@ void via_eeprom_set_valid(bool valid); void eeconfig_init_via(void); #endif +_Static_assert((intptr_t)EECONFIG_HANDEDNESS == 14, "EEPROM handedness offset is incorrect"); + /** \brief eeconfig enable * * FIXME: needs doc @@ -57,11 +59,9 @@ void eeconfig_init_quantum(void) { eeprom_update_byte(EECONFIG_AUDIO, 0); eeprom_update_dword(EECONFIG_RGBLIGHT, 0); eeprom_update_byte(EECONFIG_RGBLIGHT_EXTENDED, 0); - eeprom_update_byte(EECONFIG_UNUSED, 0); eeprom_update_byte(EECONFIG_UNICODEMODE, 0); eeprom_update_byte(EECONFIG_STENOMODE, 0); - uint64_t dummy = 0; - eeprom_update_block(&dummy, EECONFIG_RGB_MATRIX, sizeof(uint64_t)); + eeprom_write_qword(EECONFIG_RGB_MATRIX, 0); eeprom_update_dword(EECONFIG_HAPTIC, 0); #if defined(HAPTIC_ENABLE) haptic_reset(); |