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:
parent
ea7807c5f5
commit
f3464d90cc
3 changed files with 41 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue