mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-22 08:27:56 +06:00
Fix bug of emulated eeprom
This commit is contained in:
parent
619fe01bc3
commit
5ca4be13ed
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user