mirror of https://github.com/ArduPilot/ardupilot
AP_FlashStorage: implement erase() method
This commit is contained in:
parent
58e915155d
commit
8792adb6f0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue