From 807bec14b16e849825e1b0a0609fa5614fdc1c84 Mon Sep 17 00:00:00 2001 From: hedger Date: Wed, 22 May 2024 22:13:28 +0400 Subject: [PATCH] Replaced obsolete-format delay (#3660) --- targets/f7/furi_hal/furi_hal_flash.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/targets/f7/furi_hal/furi_hal_flash.c b/targets/f7/furi_hal/furi_hal_flash.c index 322a2e9054..9cf64acc58 100644 --- a/targets/f7/furi_hal/furi_hal_flash.c +++ b/targets/f7/furi_hal/furi_hal_flash.c @@ -149,9 +149,8 @@ static void furi_hal_flash_begin_with_core2(bool erase_flag) { /* Erase activity notification */ if(erase_flag) SHCI_C2_FLASH_EraseActivity(ERASE_ACTIVITY_ON); - /* 64mHz 5us core2 flag protection */ - for(volatile uint32_t i = 0; i < 35; i++) - ; + /* 5us core2 flag protection */ + furi_delay_us(5); FuriHalCortexTimer timer = furi_hal_cortex_timer_get(FURI_HAL_FLASH_C2_LOCK_TIMEOUT_MS * 1000); while(true) {