sdfat ls() serial

Status
Not open for further replies.

Fluxanode

Well-known member
Is there a method to redirect the output from the sdFat ls() to another serial port? Serial1 or serial2?
 
Sorry I don't know this library very well, but my quick look through, I believe you might be able to do:
ls(&Serial1);

or which ever one you want. The one without parameters simply calls through to one whose first parameter is a pointer to the Print class, and all of the Hardware Serial classes are derived from Stream which is derived from Print.
 
Status
Not open for further replies.
Back
Top