Go Down

Topic: SdFat.h Library compilation issues (Read 940 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