SD Card Library Missing Functions

Information and discussion regarding Firewing shields

SD Card Library Missing Functions

Postby bitfogav » Tue May 07, 2013 8:44 pm

Ive noticed that some of the cool functions are not included in the SD.bas like QuickFormat and NewFile? I was just wondering why they was left out or not used?..

Ive added the following functions to a Copy of the SD.bas in my User Library folder and the functions work fine..
Code: Select all
public inline function QuickFormat() as boolean
   return SDCard.QuickFormat()
end function

public inline function QuickFormat(pVolumeLabel As String) As Boolean
   return SDCard.QuickFormat(pVolumeLabel)
end function
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK

Re: SD Card Library Missing Functions

Postby David John Barker » Wed May 08, 2013 7:22 am

The SD module is a wrapper for a port of the Swordfish SD library, provided by Steve Wright. The "public" routines have been fully tested and are part of the official release. I left the other routines in, so people could do what you have done. That is, provide a wrapper for the non-supported routines.
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: SD Card Library Missing Functions

Postby bitfogav » Wed May 08, 2013 11:09 pm

Thanks for clearing that up David.
User avatar
bitfogav
 
Posts: 75
Joined: Sat Nov 17, 2012 11:46 am
Location: UK


Return to Shields

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x