Update eeprom_stm32_l4.c

This commit is contained in:
lalalademaxiya1 2022-06-27 11:11:10 +08:00
parent 08095b3f3d
commit 58aba271f3

View File

@ -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;
}