Try long test

This commit is contained in:
Byron Lathi
2023-10-23 18:54:51 -07:00
parent b7945f0dbf
commit e7e1eab4a4
5 changed files with 220 additions and 216 deletions

View File

@@ -33,8 +33,12 @@ int main() {
res[0] = SD_readSingleBlock(addr, buf, &token);
// if no error, print buffer
if((res[0] == 0x00) && (token == SD_START_TOKEN))
if((res[0] == 0x00) && (token == SD_START_TOKEN)) {
#ifndef RTL_SIM
SD_printBuf(buf);
#endif
}
//else if error token received, print
else if(!(token & 0xF0))
{