Browse Source

AP_FlashStorage: implement erase() method

zr-v5.1
Andrew Tridgell 5 years ago
parent
commit
8792adb6f0
  1. 5
      libraries/AP_FlashStorage/AP_FlashStorage.h

5
libraries/AP_FlashStorage/AP_FlashStorage.h

@ -82,6 +82,11 @@ public: @@ -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…
Cancel
Save