USBH: testhal MSD: abort read on error
This commit is contained in:
parent
91fd21695b
commit
06dc7fbb1e
|
@ -374,7 +374,8 @@ start:
|
|||
usbDbgPrintf("BLK: Raw read test (%dMB, %dB blocks)", RAW_READ_SZ_MB, sizeof(fbuff));
|
||||
st = chVTGetSystemTime();
|
||||
for (j = 0; j < NITERATIONS; j++) {
|
||||
blkRead(&MSBLKD[0], start, fbuff, NBLOCKS);
|
||||
if (blkRead(&MSBLKD[0], start, fbuff, NBLOCKS) != HAL_SUCCESS)
|
||||
goto start;
|
||||
start += NBLOCKS;
|
||||
}
|
||||
et = chVTGetSystemTime();
|
||||
|
|
Loading…
Reference in New Issue