From 01979174e3b93765cd568ae5a596f3432832c30b Mon Sep 17 00:00:00 2001 From: Simon Billemont Date: Sat, 16 Apr 2022 22:16:02 +0200 Subject: [PATCH] Fixed accedental swap of size parameter and KNX_FLASH_SIZE define introduced in PR #196 (#197) --- src/esp32_platform.cpp | 2 +- src/esp_platform.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;