diff options
author | Joel Challis <git@zvecr.com> | 2021-04-20 18:51:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 10:51:55 -0700 |
commit | 1cecd593c81e1dca225919614b6f3f8f3f1d4bf7 (patch) | |
tree | f1199ea2192ec0739004d06b60aacbcf0ea29a9e /tmk_core/common | |
parent | 2bccb7132da24fa9d3a3a74a6c9e578b6d1960c8 (diff) |
Fix for gcc10 teensy_lc eeprom build warning (#12587)
Diffstat (limited to 'tmk_core/common')
-rw-r--r-- | tmk_core/common/chibios/eeprom_teensy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/common/chibios/eeprom_teensy.c b/tmk_core/common/chibios/eeprom_teensy.c index e135e19a21..4aaf665269 100644 --- a/tmk_core/common/chibios/eeprom_teensy.c +++ b/tmk_core/common/chibios/eeprom_teensy.c @@ -363,7 +363,7 @@ void eeprom_initialize(void) { return; } } while (p < (uint16_t *)SYMVAL(__eeprom_workarea_end__)); - flashend = (uint32_t)((uint16_t *)SYMVAL(__eeprom_workarea_end__) - 1); + flashend = (uint32_t)(p - 1); } uint8_t eeprom_read_byte(const uint8_t *addr) { |