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

Flashfs: Add support for asynchronous complete erase

This commit is contained in:
Martin Luessi 2022-07-08 06:46:08 -07:00
parent ea7807c5f5
commit f3464d90cc
3 changed files with 41 additions and 13 deletions

View file

@ -61,6 +61,7 @@
#include "io/asyncfatfs/asyncfatfs.h"
#include "io/beeper.h"
#include "io/dashboard.h"
#include "io/flashfs.h"
#include "io/gps.h"
#include "io/ledstrip.h"
#include "io/piniobox.h"
@ -126,6 +127,10 @@ static void taskMain(timeUs_t currentTimeUs)
#ifdef USE_SDCARD
afatfs_poll();
#endif
#ifdef USE_FLASHFS
flashfsEraseAsync();
#endif
}
static void taskHandleSerial(timeUs_t currentTimeUs)