diff --git a/src/main/cli/cli.c b/src/main/cli/cli.c index 7d00241d1..d410c2bb5 100644 --- a/src/main/cli/cli.c +++ b/src/main/cli/cli.c @@ -2288,6 +2288,7 @@ static void cliFlashErase(char *cmdline) bufWriterFlush(cliWriter); flashfsEraseCompletely(); + flashfsInit(); while (!flashfsIsReady()) { #ifndef MINIMAL_CLI diff --git a/src/main/msp/msp.c b/src/main/msp/msp.c index 088089e09..25e7db5ac 100644 --- a/src/main/msp/msp.c +++ b/src/main/msp/msp.c @@ -2342,6 +2342,7 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src) #ifdef USE_FLASHFS case MSP_DATAFLASH_ERASE: flashfsEraseCompletely(); + flashfsInit(); break; #endif