Merge pull request #41 from lalalademaxiya1/playground

Update eeprom_stm32_l4.c
This commit is contained in:
lalalademaxiya1 2022-06-27 11:12:03 +08:00 committed by GitHub
commit ea518140dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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