FlashStorage icon indicating copy to clipboard operation
FlashStorage copied to clipboard

Erase function doesn't work

Open Oxygen54 opened this issue 6 years ago • 1 comments

I tried to erase the content of flash but it doesn't work. Is this way to erase ? I use a Feather M0 Adalogger

#include <FlashStorage.h>

FlashStorage(MyFlash, uint8_t *);


void setup(){
    MyFlash.write((uint8_t *) 255); // Write something
    MyFlash.erase(1); // The erase function is unknown
}

void loop(){

}

In the FlashStorage.h file there is an erase function but when I call it in the program, it says that the Erase function doesn't exist...

Thanks!

Oxygen54 avatar Mar 01 '19 09:03 Oxygen54

@Oxygen54 why are writing erase(1)? There no function available that can accept arguments... Try MyFlash.erase();

Adminius avatar Sep 28 '20 16:09 Adminius