AP_FlashStorage: implement erase() method

This commit is contained in:
Andrew Tridgell 2019-12-27 11:45:20 +11:00
parent 58e915155d
commit 8792adb6f0
1 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,11 @@ public:
// initialise storage, filling mem_buffer with current contents
bool init(void);
// erase sectors and re-initialise
bool erase(void) {
return erase_all();
}
// re-initialise storage, using current mem_buffer
bool re_initialise(void);