diff --git a/platforms/chibios/drivers/eeprom/eeprom_stm32_l4.c b/platforms/chibios/drivers/eeprom/eeprom_stm32_l4.c index 7e0e77c9e7..1dee6b0723 100644 --- a/platforms/chibios/drivers/eeprom/eeprom_stm32_l4.c +++ b/platforms/chibios/drivers/eeprom/eeprom_stm32_l4.c @@ -489,7 +489,7 @@ void eeprom_write_block(const void *buf, void *addr, size_t len) { write_len = 2; } else { /* Write the unaligned or single byte */ - EEPROM_WriteDataByte((uintptr_t)dest++, *src++); + EEPROM_WriteDataByte((uintptr_t)dest, *src); write_len = 1; }