mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 07:51:19 +01:00
Merge pull request #8233 from smlng/cpu/sam0/fix_flashpage
cpu/sam0_common: fix assert in periph/flashpage
This commit is contained in:
commit
329c6bf91a
@ -68,7 +68,7 @@ void flashpage_write_raw(void *target_addr, void *data, size_t len)
|
||||
((unsigned)data % FLASHPAGE_RAW_ALIGNMENT)));
|
||||
|
||||
/* ensure the length doesn't exceed the actual flash size */
|
||||
assert(((uint8_t*)target_addr + len) <
|
||||
assert(((unsigned)target_addr + len) <
|
||||
(CPU_FLASH_BASE + (FLASHPAGE_SIZE * FLASHPAGE_NUMOF)));
|
||||
|
||||
uint32_t *dst = (uint32_t *)target_addr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user