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

Suggest reinstating end() method in the SD library #4559

Closed
dookaloosy opened this issue Feb 11, 2016 · 1 comment
Closed

Suggest reinstating end() method in the SD library #4559

dookaloosy opened this issue Feb 11, 2016 · 1 comment
Labels
feature request A request to make an enhancement (not a bug fix) Library: SD The SD Arduino library

Comments

@dookaloosy
Copy link

The old beta library (https://github.com/adafruit/SD) used to have an SDClass::end() method that could be used to close an SDClass session. Without it, removing and reinserting a storage card would trigger an failure upon calling SDClass::begin(), as the previous session hadn't been closed.

Suggest adding to SD.h:
//call this when a card is removed. It will allow you to inster and initialise a new card.
void end();

and to SD.cpp:
//call this when a card is removed. It will allow you to inster and initialise a new card.
void SDClass::end()
{
root.close();
}

@per1234 per1234 added Library: SD The SD Arduino library feature request A request to make an enhancement (not a bug fix) labels Jul 4, 2017
@per1234 per1234 changed the title Suggest reinstating end() method Suggest reinstating end() method in the SD library Jul 4, 2017
@per1234
Copy link
Collaborator

per1234 commented Mar 28, 2021

Transferred to arduino-libraries/SD#90

@per1234 per1234 closed this as completed Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request to make an enhancement (not a bug fix) Library: SD The SD Arduino library
Projects
None yet
Development

No branches or pull requests

2 participants