diff --git a/src/esp32_platform.cpp b/src/esp32_platform.cpp index 46ebd20..c6a600b 100644 --- a/src/esp32_platform.cpp +++ b/src/esp32_platform.cpp @@ -108,7 +108,7 @@ uint8_t * Esp32Platform::getEepromBuffer(uint16_t size) { uint8_t * eepromptr = EEPROM.getDataPtr(); if(eepromptr == nullptr) { - EEPROM.begin(KNX_FLASH_SIZE); + EEPROM.begin(size); eepromptr = EEPROM.getDataPtr(); } return eepromptr; diff --git a/src/esp_platform.cpp b/src/esp_platform.cpp index 0a9e9cc..67bcef1 100644 --- a/src/esp_platform.cpp +++ b/src/esp_platform.cpp @@ -108,7 +108,7 @@ uint8_t * EspPlatform::getEepromBuffer(uint16_t size) { uint8_t * eepromptr = EEPROM.getDataPtr(); if(eepromptr == nullptr) { - EEPROM.begin(KNX_FLASH_SIZE); + EEPROM.begin(size); eepromptr = EEPROM.getDataPtr(); } return eepromptr;