diff options
| -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 e135e19a2..4aaf66526 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) { | |||
| 363 | return; | 363 | return; |
| 364 | } | 364 | } |
| 365 | } while (p < (uint16_t *)SYMVAL(__eeprom_workarea_end__)); | 365 | } while (p < (uint16_t *)SYMVAL(__eeprom_workarea_end__)); |
| 366 | flashend = (uint32_t)((uint16_t *)SYMVAL(__eeprom_workarea_end__) - 1); | 366 | flashend = (uint32_t)(p - 1); |
| 367 | } | 367 | } |
| 368 | 368 | ||
| 369 | uint8_t eeprom_read_byte(const uint8_t *addr) { | 369 | uint8_t eeprom_read_byte(const uint8_t *addr) { |
