mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
Avoid synchronous flushes to flash during Blackbox shutdown
This commit is contained in:
parent
acd4745a4e
commit
d6911e8b86
5 changed files with 15 additions and 8 deletions
|
@ -772,7 +772,12 @@ static void cliFlashErase(char *cmdline)
|
|||
|
||||
printf("Erasing, please wait...\r\n");
|
||||
flashfsEraseCompletely();
|
||||
printf("Erased flash chip.\r\n");
|
||||
|
||||
while (!flashfsIsReady()) {
|
||||
delay(100);
|
||||
}
|
||||
|
||||
printf("Done.\r\n");
|
||||
}
|
||||
|
||||
static void cliFlashWrite(char *cmdline)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue