summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2023-08-22 12:00:28 +0800
committerlokher <lokher@gmail.com>2023-08-22 12:04:28 +0800
commit5ca4be13ed154ef22bdec8274b11b9b6777a10f3 (patch)
tree10cad513b2e008d0432e06fa4384ee9b139daee3 /platforms
parent619fe01bc3635683ea158f6885b4b3dd20e512f0 (diff)
Fix bug of emulated eeprom
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;
}