mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
#2619 - Stupid bug
Only ~62 EEPROM write and then we get an INVALID EEPROM
This commit is contained in:
parent
10832ad60a
commit
a2902280b0
1 changed files with 1 additions and 0 deletions
|
@ -171,6 +171,7 @@ bool eepromOpen()
|
|||
eepromRead(eepromFatAddr, (uint8_t *)&eepromHeader, sizeof(eepromHeader.mark) + sizeof(eepromHeader.index));
|
||||
if (eepromHeader.mark == EEPROM_MARK && eepromHeader.index >= bestFatIndex) {
|
||||
bestFatAddr = eepromFatAddr;
|
||||
bestFatIndex = eepromHeader.index;
|
||||
}
|
||||
eepromFatAddr += EEPROM_FAT_SIZE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue