summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'platforms')
-rw-r--r--platforms/chibios/eeprom_stm32_l4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/chibios/eeprom_stm32_l4.c b/platforms/chibios/eeprom_stm32_l4.c
index 33a6d284c8..37e9b27266 100644
--- a/platforms/chibios/eeprom_stm32_l4.c
+++ b/platforms/chibios/eeprom_stm32_l4.c
@@ -523,7 +523,7 @@ void eeprom_read_block(void *buf, const void *addr, size_t len) {
/* Check word alignment */
if (len && (uint32_t)src % 2) {
/* Read the unaligned first byte */
- *dest++ = EEPROM_ReadDataByte((const uintptr_t)((uint16_t *)src));
+ *dest++ = EEPROM_ReadDataByte((const uintptr_t)((uint16_t *)src++));
--len;
}