1
0
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:
Martine Lenders 2017-12-11 15:40:02 +01:00 committed by GitHub
commit 329c6bf91a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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