aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/at91sam3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/at91sam3.c')
-rw-r--r--src/flash/nor/at91sam3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/at91sam3.c b/src/flash/nor/at91sam3.c
index b5074de..0fb8657 100644
--- a/src/flash/nor/at91sam3.c
+++ b/src/flash/nor/at91sam3.c
@@ -2845,7 +2845,7 @@ static int sam3_write(struct flash_bank *bank,
/* By checking that offset is correct here, we also
fix a clang warning */
- assert(offset == pPrivate->page_size);
+ assert(offset % pPrivate->page_size == 0);
/* intermediate large pages */
/* also - the final *terminal* */