No changes
Fork of SDFileSystem by
Diff: SDFileSystem.cpp
- Revision:
- 6:17a2a6236bdd
- Parent:
- 3:7b35d1709458
--- a/SDFileSystem.cpp Sat Jan 03 15:42:30 2015 +0000 +++ b/SDFileSystem.cpp Tue Oct 06 16:51:06 2015 +0000 @@ -149,7 +149,7 @@ // send CMD0, should return with all zeros except IDLE STATE set (bit 0) if (_cmd(0, 0) != R1_IDLE_STATE) { - debug("No disk, or could not put SD card in to SPI idle state\n"); + debug("No disk, or could not put SD card in to SPI idle state\r\n"); return SDCARD_FAIL; } @@ -160,7 +160,7 @@ } else if (r == (R1_IDLE_STATE | R1_ILLEGAL_COMMAND)) { return initialise_card_v1(); } else { - debug("Not in idle state after sending CMD8 (not an SD card?)\n"); + debug("Not in idle state after sending CMD8 (not an SD card?)\r\n"); return SDCARD_FAIL; } } @@ -175,7 +175,7 @@ } } - debug("Timeout waiting for v1.x card\n"); + debug("Timeout waiting for v1.x card\r\n"); return SDCARD_FAIL; } @@ -192,18 +192,18 @@ } } - debug("Timeout waiting for v2.x card\n"); + debug("Timeout waiting for v2.x card\r\n"); return SDCARD_FAIL; } int SDFileSystem::disk_initialize() { int i = initialise_card(); - debug_if(SD_DBG, "init card = %d\n", i); + debug_if(SD_DBG, "init card = %d\r\n", i); _sectors = _sd_sectors(); // Set block length to 512 (CMD16) if (_cmd(16, 512) != 0) { - debug("Set 512-byte block timed out\n"); + debug("Set 512-byte block timed out\r\n"); return 1; } @@ -415,13 +415,13 @@ // CMD9, Response R2 (R1 byte + 16-byte block read) if (_cmdx(9, 0) != 0) { - debug("Didn't get a response from the disk\n"); + debug("Didn't get a response from the disk\r\n"); return 0; } uint8_t csd[16]; if (_read(csd, 16) != 0) { - debug("Couldn't read csd response from disk\n"); + debug("Couldn't read csd response from disk\r\n"); return 0; }