mirror of
https://github.com/thelsing/knx.git
synced 2025-08-22 13:46:21 +02:00
custom flash size
This commit is contained in:
parent
6f8cde49b4
commit
e230fa79ab
@ -2,6 +2,10 @@
|
||||
#include <string.h>
|
||||
#include "bits.h"
|
||||
|
||||
#ifndef KNX_FLASH_SIZE
|
||||
# define KNX_FLASH_SIZE 8192
|
||||
#endif
|
||||
|
||||
Memory::Memory(Platform& platform, DeviceObject& deviceObject)
|
||||
: _platform(platform), _deviceObject(deviceObject)
|
||||
{
|
||||
@ -13,7 +17,7 @@ void Memory::readMemory()
|
||||
if (_data != nullptr)
|
||||
return;
|
||||
|
||||
uint16_t flashSize = 8192;
|
||||
uint16_t flashSize = KNX_FLASH_SIZE;
|
||||
_data = _platform.getEepromBuffer(flashSize);
|
||||
|
||||
printHex("RESTORED ", _data, _metadataSize);
|
||||
|
Loading…
Reference in New Issue
Block a user