Merge pull request #98 from RobMeades/master

Make the test for success when programming single blocks the same as …
pull/7774/head
Deepika 2018-05-22 11:36:17 -05:00 committed by GitHub
commit f1bb57ae79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -444,7 +444,7 @@ int SDBlockDevice::program(const void *b, bd_addr_t addr, bd_size_t size)
response = _write(buffer, SPI_START_BLOCK, _block_size);
// Only CRC and general write error are communicated via response token
if ((response == SPI_DATA_CRC_ERROR) || (response == SPI_DATA_WRITE_ERROR)) {
if (response != SPI_DATA_ACCEPTED) {
debug_if(SD_DBG, "Single Block Write failed: 0x%x \n", response);
status = SD_BLOCK_DEVICE_ERROR_WRITE;
}

View File

@ -7,7 +7,7 @@
"SPI_CLK": "NC",
"DEVICE_SPI": 1,
"FSFAT_SDCARD_INSTALLED": 1,
"CMD_TIMEOUT": 5000,
"CMD_TIMEOUT": 10000,
"CMD0_IDLE_STATE_RETRIES": 5,
"SD_INIT_FREQUENCY": 100000
},