flashSize must be big enough. Security IF object contains a lot more data.

This commit is contained in:
Nanosonde 2020-07-02 21:17:22 +02:00
parent 31f8efc516
commit bdc6df376e

View File

@ -13,7 +13,7 @@ void Memory::readMemory()
if (_data != nullptr)
return;
uint16_t flashSize = 512;
uint16_t flashSize = 2048;
_data = _platform.getEepromBuffer(flashSize);
printHex("RESTORED ", _data, _metadataSize);
@ -428,4 +428,4 @@ void Memory::addNewUsedBlock(uint8_t* address, size_t size)
MemoryBlock* newUsedBlock = new MemoryBlock(address, size);
addToUsedList(newUsedBlock);
}
}