arduino-libraries / SD

SD Library for Arduino

Home Page:http://arduino.cc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Protected access or getters for fields 'card', 'volume' and 'root'

F-Schmidt99 opened this issue · comments

Please either change the visibility of the fields in the title to protected or implement getters returning references to the according object variables. This would allow further inheritance and an efficient way to display SD card details and use the same object to also read/write to SD.

With the current implementation, one has to set up an Sd2Card object just to obtain the type (and other card information) and then an additional SD object, which has an Sd2Card field. This does not make much sense.

I'll do it. I want this for my stuff anyway.

-jim lee