Nikola Milenic / SDcardM

Files at this revision

API Documentation at this revision

Comitter:
milenicnikola
Date:
Thu Jun 27 17:12:06 2019 +0000
Parent:
0:ce17b48156eb
Commit message:
par manjih poboljsanja

Changed in this revision

SDcardM.cpp Show annotated file Show diff for this revision Revisions of this file
sd-driver.lib Show annotated file Show diff for this revision Revisions of this file
--- a/SDcardM.cpp	Wed Jun 12 21:49:37 2019 +0000
+++ b/SDcardM.cpp	Thu Jun 27 17:12:06 2019 +0000
@@ -15,6 +15,7 @@
 {
     for (int j=0; j<520; j++) writeBuffer[j]=0;
     i = 0;
+    sd.deinit();
     if(sd.init()) {
         return false;
     }
@@ -48,9 +49,7 @@
 
 void SD_log_float(float f)
 {
-    pc.printf("INDEX: %d\r\n", i);
     memcpy(writeBuffer+i, (char*) (&f), 4);
-    pc.printf("INDEX: %d\r\n", i);
     i+=4;
     if(i>=512) {
         sd.program(writeBuffer, block, 512);
@@ -62,7 +61,6 @@
         }
         i-=512;
     }
-    pc.printf("INDEX: %d\r\n", i);
 }
 
 void SD_log_int(int f)
@@ -79,7 +77,6 @@
         }
         i-=512;
     }
-    pc.printf("INDEX: %d\r\n", i);
 }
 
 
--- a/sd-driver.lib	Wed Jun 12 21:49:37 2019 +0000
+++ b/sd-driver.lib	Thu Jun 27 17:12:06 2019 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/sd-driver/#ae7e7440054c9447f8255bdccbcc523b3f6dffe4
+https://github.com/ARMmbed/sd-driver/#eb9d8869f7bf9000ab87fa2dfb7b1be63444e790