Is this something people want? Unfortunately its not simple to have
SD.end auto-close files because the file objects are no longer under the
SD object's control but i could try to keep an array of them.
Essentially, if users close() all files, they can remove the card
whenever they wish and re-init() later.
On 4/21/2011 7:28 PM, Paul Stoffregen wrote:
> Does SD.end() make sense?
> A likely usage would be swapping the SD card, but without a reset or
> power cycle, in applications where the board is permanently installed
> (eg, art installations, long term data logging, etc). SD.end() would
> close any open files, flush the cache and whatever else should be done
> to completely finish all usage of the SD card.
> Or is it enough for people to swap the card any time, the user to just
> call SD.begin() again to try recognizing whatever new card may have been
> Developers mailing list
Developers mailing list