Open Oxygen54 opened 5 years ago
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 why are writing erase(1)? There no function available that can accept arguments... Try MyFlash.erase();
I tried to erase the content of flash but it doesn't work. Is this way to erase ? I use a Feather M0 Adalogger
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!