SDFileSystem, slightly modified for the ExoController

Dependencies:   SDFileSystem

Dependents:   Data-Management-Honka

Fork of SDFileSystem_HelloWorld by Bradley Perry

Revision:
10:23a3c0102ab0
Parent:
9:5bad923e18ce
Child:
11:b47fb3344ed9
--- a/SDFile.cpp	Fri Apr 24 19:32:53 2015 +0000
+++ b/SDFile.cpp	Mon Apr 27 21:58:36 2015 +0000
@@ -44,7 +44,7 @@
     //pc.printf("reading to array at %d\r\n", &array[0]);
     //cycle through the length of the vector and read the values.
     for(int i = 0; i < length; i++) {
-        pc.printf("File %d, array %d\r\n", _fp, &array[i]);
+        //pc.printf("File %d, array %d\r\n", _fp, &array[i]);
         s= fscanf(_fp, "%x, ", &array[i]);
       //  pc.printf("HHHHH\r\n", s);
         //pc.printf("read %x now at %ld\r\n", array[i], ftell(_fp));
@@ -88,6 +88,12 @@
     fflush(_fp);
 }
 
+/** This function writes to a single position in the file
+* @param index  write to this index of the file, or at offset index*6 from the start
+* @param value  the new value to be written to that position
+* @author Michael Ling
+* @date 4/24/2015
+*/
 void SDFile::write_to_index(int index, int value)
 {
      fseek(_fp, 6*index, SEEK_SET);