Skip to content

Commit

Permalink
Replaced obsolete-format delay (flipperdevices#3660)
Browse files Browse the repository at this point in the history
  • Loading branch information
hedger authored May 22, 2024
1 parent 8ba938c commit 807bec1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions targets/f7/furi_hal/furi_hal_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 807bec1

Please sign in to comment.