Fixed accedental swap of size parameter and KNX_FLASH_SIZE define introduced in PR #196 (#197)

This commit is contained in:
Simon Billemont 2022-04-16 22:16:02 +02:00 committed by GitHub
parent b0153de97f
commit 01979174e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;