mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
Reinitialise flashFs after erasing flash chip.
Ensures erase actually worked rather than assuming it did.
This commit is contained in:
parent
cfcd528a87
commit
e9b666421a
2 changed files with 2 additions and 0 deletions
|
@ -2288,6 +2288,7 @@ static void cliFlashErase(char *cmdline)
|
|||
|
||||
bufWriterFlush(cliWriter);
|
||||
flashfsEraseCompletely();
|
||||
flashfsInit();
|
||||
|
||||
while (!flashfsIsReady()) {
|
||||
#ifndef MINIMAL_CLI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue