summaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-04-20 17:52:32 +0000
committerQMK Bot <hello@qmk.fm>2021-04-20 17:52:32 +0000
commitb09d068bf6f33f8dee84f8125fee3b982f5f7def (patch)
tree37cf3e73e32904f44bf37612e910d9af7beae030 /tmk_core
parentf7f8f97e6a6858358cfbb9367c7990e9b5b91c72 (diff)
parent1cecd593c81e1dca225919614b6f3f8f3f1d4bf7 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'tmk_core')
-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) {