Update stm32_platform.cpp

Addresses a side effect of https://github.com/thelsing/knx/pull/177, which causes the eeprom buffer to be overwritten every time getEepromBuffer is called. This prevented programming of STM32 boards as their initial bus address was lost before programming.
This commit is contained in:
rueckix 2022-04-29 23:15:29 +02:00
parent 21f96ff494
commit db58c21aae

View File

@ -44,8 +44,7 @@ uint8_t * Stm32Platform::getEepromBuffer(uint16_t size)
_eepromPtr = new uint8_t[size];
eeprom_buffer_fill();
for (uint16_t i = 0; i < size; ++i)
_eepromPtr[i] = eeprom_buffered_read_byte(i);
_eepromPtr[i] = eeprom_buffered_read_byte(i);
}
return _eepromPtr;