Get SD card reads working

This commit is contained in:
Byron Lathi
2023-07-23 22:44:19 -07:00
parent d16675ed3c
commit 096472e084
4 changed files with 28 additions and 20 deletions

View File

@@ -282,8 +282,6 @@ uint8_t SD_readSingleBlock(uint32_t addr, uint8_t *buf, uint8_t *token)
uint16_t readAttempts;
uint16_t i;
/*
// set token to none
*token = 0xFF;
@@ -326,8 +324,6 @@ uint8_t SD_readSingleBlock(uint32_t addr, uint8_t *buf, uint8_t *token)
spi_deselect(0);
spi_exchange(0xFF);
*/
return res1;
}