Flash test: fix off-by-one error

F#3536
pull/773/head
Mattia Moffa 2026-05-05 18:15:56 +02:00 committed by Daniele Lacamera
parent 481ff1ffdb
commit 871dd854ff
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ int hal_flash_test_unaligned_src(void)
ptr = (uint8_t*)(uintptr_t)src;
ptr++;
for (i = 0; i < sizeof(src); i++) {
for (i = 0; i < sizeof(src) - 1; i++) {
ptr[i] = i & 0xff;
}