1
0
Fork 0
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:
Nicholas Sherlock 2015-02-15 23:23:53 +13:00
parent acd4745a4e
commit d6911e8b86
5 changed files with 15 additions and 8 deletions

View file

@ -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)