Fix for gcc10 teensy_lc eeprom build warning (#12587)

This commit is contained in:
Joel Challis 2021-04-20 18:51:55 +01:00 committed by GitHub
parent 2bccb7132d
commit 1cecd593c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -363,7 +363,7 @@ void eeprom_initialize(void) {
return; return;
} }
} while (p < (uint16_t *)SYMVAL(__eeprom_workarea_end__)); } 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) { uint8_t eeprom_read_byte(const uint8_t *addr) {