Tweak STM32F4/7 eeprom emulation (#14563)

This commit is contained in:
Scott Lahteine
2019-07-09 22:49:58 -05:00
committed by GitHub
parent 056efaba91
commit f990ebfb09
7 changed files with 225 additions and 323 deletions

View File

@ -95,7 +95,6 @@ void eeprom_update_block(const void *pos, void* eeprom_address, size_t n) {
}
}
uint8_t eeprom_read_byte(uint8_t *pos) {
unsigned eeprom_address = (unsigned)pos;
@ -109,7 +108,7 @@ uint8_t eeprom_read_byte(uint8_t *pos) {
return Wire.available() ? Wire.read() : 0xFF;
}
// maybe let's not read more than 30 or 32 bytes at a time!
// Don't read more than 30..32 bytes at a time!
void eeprom_read_block(void* pos, const void* eeprom_address, size_t n) {
eeprom_init();