mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
#2619 - Valgrind complains on EEPROM block erase
Should not change anything though.
This commit is contained in:
parent
25d233e832
commit
10832ad60a
1 changed files with 4 additions and 1 deletions
|
@ -99,7 +99,8 @@ void eepromEraseBlock(uint32_t address, bool blocking=true)
|
|||
// TRACE("eepromEraseBlock(%d)", address);
|
||||
|
||||
#if defined(SIMU)
|
||||
static uint8_t erasedBlock[EEPROM_BLOCK_SIZE] = { 0xff };
|
||||
static uint8_t erasedBlock[EEPROM_BLOCK_SIZE]; // can't be on the stack!
|
||||
memset(erasedBlock, 0xff, sizeof(erasedBlock));
|
||||
eeprom_pointer = address;
|
||||
eeprom_buffer_data = erasedBlock;
|
||||
eeprom_buffer_size = EEPROM_BLOCK_SIZE;
|
||||
|
@ -442,6 +443,8 @@ void eeCheck(bool immediately)
|
|||
eepromWriteWait();
|
||||
}
|
||||
|
||||
assert(eepromWriteState == EEPROM_IDLE);
|
||||
|
||||
if (s_eeDirtyMsk & EE_GENERAL) {
|
||||
TRACE("eeprom write general");
|
||||
s_eeDirtyMsk -= EE_GENERAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue