Reading Analog Ports and Saving in a micro SD CARD with the KL25z
Dependencies: SDFileSystem mbed
Fork of SDFileSystem_HelloWorld by
Diff: main.cpp
- Revision:
- 16:d68a6d4050f2
- Parent:
- 12:bd8b17cd6a7b
- Child:
- 17:e5b7469082c8
diff -r 5444449316cc -r d68a6d4050f2 main.cpp --- 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();