mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 06:54:19 +00:00
Replaced obsolete-format delay (#3660)
This commit is contained in:
parent
8ba938cec1
commit
807bec14b1
1 changed files with 2 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue