diff options
Diffstat (limited to 'src/flash/str7x.c')
-rw-r--r-- | src/flash/str7x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/str7x.c b/src/flash/str7x.c index a0904182..902d0336 100644 --- a/src/flash/str7x.c +++ b/src/flash/str7x.c @@ -273,7 +273,7 @@ static int str7x_erase(struct flash_bank_s *bank, int first, int last) cmd = FLASH_SER | FLASH_WMS; target_write_u32(target, str7x_get_flash_adr(bank, FLASH_CR0), cmd); - while (((retval = str7x_status(bank)) & str7x_info->busy_bits)){ + while (((retval = str7x_status(bank)) & str7x_info->busy_bits)) { alive_sleep(1); } @@ -329,7 +329,7 @@ static int str7x_protect(struct flash_bank_s *bank, int set, int first, int last cmd = FLASH_SPR | FLASH_WMS; target_write_u32(target, str7x_get_flash_adr(bank, FLASH_CR0), cmd); - while (((retval = str7x_status(bank)) & str7x_info->busy_bits)){ + while (((retval = str7x_status(bank)) & str7x_info->busy_bits)) { alive_sleep(1); } |