Fix bug of emulated eeprom
This commit is contained in:
parent
619fe01bc3
commit
5ca4be13ed
1 changed files with 1 additions and 1 deletions
|
|
@ -523,7 +523,7 @@ void eeprom_read_block(void *buf, const void *addr, size_t len) {
|
||||||
/* Check word alignment */
|
/* Check word alignment */
|
||||||
if (len && (uint32_t)src % 2) {
|
if (len && (uint32_t)src % 2) {
|
||||||
/* Read the unaligned first byte */
|
/* Read the unaligned first byte */
|
||||||
*dest++ = EEPROM_ReadDataByte((const uintptr_t)((uint16_t *)src));
|
*dest++ = EEPROM_ReadDataByte((const uintptr_t)((uint16_t *)src++));
|
||||||
--len;
|
--len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue