1
0
Fork 0
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:
Bertrand Songis 2015-08-03 22:35:16 +02:00
parent 10832ad60a
commit a2902280b0

View file

@ -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;
}