summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-04-20 18:51:55 +0100
committerGitHub <noreply@github.com>2021-04-20 10:51:55 -0700
commit1cecd593c81e1dca225919614b6f3f8f3f1d4bf7 (patch)
treef1199ea2192ec0739004d06b60aacbcf0ea29a9e
parent2bccb7132da24fa9d3a3a74a6c9e578b6d1960c8 (diff)
Fix for gcc10 teensy_lc eeprom build warning (#12587)0.12.38
-rw-r--r--tmk_core/common/chibios/eeprom_teensy.c2
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) {