diff options
Diffstat (limited to 'src/flash/nor/str9x.c')
-rw-r--r-- | src/flash/nor/str9x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/str9x.c b/src/flash/nor/str9x.c index 3d8b84b..2208fe3 100644 --- a/src/flash/nor/str9x.c +++ b/src/flash/nor/str9x.c @@ -385,7 +385,7 @@ static int str9x_write_block(struct flash_bank *bank, (uint8_t*)str9x_flash_write_code); /* memory buffer */ - while (target_alloc_working_area(target, buffer_size, &source) != ERROR_OK) + while (target_alloc_working_area_try(target, buffer_size, &source) != ERROR_OK) { buffer_size /= 2; if (buffer_size <= 256) |