PaulStoffregen / SD

70 stars 41 forks source link

'class SdFs' has no member named 'restart' #41

Closed abayomi185 closed 2 years ago

abayomi185 commented 2 years ago

Hi @PaulStoffregen I'm unable to build this library into my project and I get this error:

error: 'class SdFs' has no member named 'restart'

You also have a comment at this function call;

if (ret)
{
    ret = sdfs.restart();
    // bugbug:: if it fails and builtin may need to start pinMode again...
}
//Serial.print(ret ? "begin ok" : "begin nope");

Do you have any ideas as to what the issue might be?

I've tried a few versions of greiman/SdFat thinking it might've been a breaking change but to no avail.

I seem to occasionally get this issue too:

error: #error "Teensy's SD library uses a custom modified copy of SdFat. 
Standard SdFat was mistakenly used.  Arduino should print multiple libraries found for SdFat.h. 
To resolve this error, you will need to move or delete the copy Arduino is using,
or otherwise take steps to cause Teensy's special copy of SdFat to be used."

But I am able to find that the macro set by the #define directive is set in the SdFat source.