Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erase function doesn't work #29

Open
Oxygen54 opened this issue Mar 1, 2019 · 1 comment
Open

Erase function doesn't work #29

Oxygen54 opened this issue Mar 1, 2019 · 1 comment

Comments

@Oxygen54
Copy link

Oxygen54 commented Mar 1, 2019

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!

@Adminius
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants