Reading Analog Ports and Saving in a micro SD CARD with the KL25z

Dependencies:   SDFileSystem mbed

Fork of SDFileSystem_HelloWorld by Neil Thiessen

Revision:
16:d68a6d4050f2
Parent:
12:bd8b17cd6a7b
Child:
17:e5b7469082c8
--- a/main.cpp	Mon Jan 05 18:44:22 2015 +0000
+++ b/main.cpp	Wed Jul 08 16:47:02 2015 +0000
@@ -89,7 +89,7 @@
         else
             printf("Unknown\n");
         printf("Sectors: %llu\n", sd.disk_sectors());
-        printf("Capacity: %.1fMB\n", (sd.disk_sectors() * 512) / 1048576.0);
+        printf("Capacity: %.1fMB\n", sd.disk_sectors() / 2048.0);
 
         //Mount the filesystem
         sd.mount();