Go Down

Topic: SdFat.h Library compilation issues (Read 761 times) previous topic - next topic


im getting the error:

GpsDataLoggerInstructable_pde.ino: In function 'void setup()':
GpsDataLoggerInstructable_pde:56: error: no matching function for call to 'SdVolume::init(Sd2Card&)'
C:\Program Files (x86)\Arduino\libraries\SdFat/SdVolume.h:81: note: candidates are: bool SdVolume::init(Sd2Card*)
C:\Program Files (x86)\Arduino\libraries\SdFat/SdVolume.h:82: note:                 bool SdVolume::init(Sd2Card*, uint8_t)

and then if i try its' suggustions it says that the following line needs to follow an initialiser
the two lines are:

  volume.init(card);      //Initialize a volume on the SD card.
  root.openRoot(volume);  //Open the root directory in the volume.

i need some help with converting to the updated version of SdFat.h
what should i replace these two lines with?

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131