Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: SDcardM.cpp
- Revision:
- 1:f4a3e6cca74e
- Parent:
- 0:ce17b48156eb
--- 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);
}