1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 12:25:20 +03:00

Really fixed flash erasing.

This commit is contained in:
mikeller 2019-05-19 12:30:37 +12:00
parent ba047e0559
commit babad40dcb
2 changed files with 1 additions and 2 deletions

View file

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

View file

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