From db58c21aae6c8395a111f0d8ad44f232751dc8a4 Mon Sep 17 00:00:00 2001 From: rueckix <39458989+rueckix@users.noreply.github.com> Date: Fri, 29 Apr 2022 23:15:29 +0200 Subject: [PATCH] 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. --- src/stm32_platform.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stm32_platform.cpp b/src/stm32_platform.cpp index a57e544..5e3a88c 100644 --- a/src/stm32_platform.cpp +++ b/src/stm32_platform.cpp @@ -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;