1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Really fixed flash erasing. (#8300)

Really fixed flash erasing.
This commit is contained in:
Michael Keller 2019-05-20 19:57:13 +12:00 committed by GitHub
commit 70215cc758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -2259,7 +2259,6 @@ static void cliFlashErase(char *cmdline)
bufWriterFlush(cliWriter);
flashfsEraseCompletely();
flashfsInit();
while (!flashfsIsReady()) {
#ifndef MINIMAL_CLI

View file

@ -2344,7 +2344,7 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
#ifdef USE_FLASHFS
case MSP_DATAFLASH_ERASE:
flashfsEraseCompletely();
flashfsInit();
break;
#endif