diff options
| author | majbthrd <[email protected]> | 2021-02-25 08:57:09 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-25 08:57:09 -0600 |
| commit | 0632ecf556edb11081d621cbb7ef6162d76b0ef3 (patch) | |
| tree | 13b929995dd32681c2e88c68804f71b76e7bf0fa /lib | |
| parent | 999ef227d0151bae5db09da7a9b3ed3be20ef891 (diff) | |
| parent | 50a0bddd8b5f394215bdf36ac5b17a7386a77e3d (diff) | |
Merge branch 'master' into rp2040device
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/fatfs/diskio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fatfs/diskio.c b/lib/fatfs/diskio.c index 38503148d..401f583a2 100644 --- a/lib/fatfs/diskio.c +++ b/lib/fatfs/diskio.c @@ -48,7 +48,7 @@ static DSTATUS disk_state[CFG_TUSB_HOST_DEVICE_MAX]; static DRESULT wait_for_io_complete(uint8_t usb_addr) { // TODO with RTOS, this should use semaphore instead of blocking - while ( tuh_msc_is_busy(usb_addr) ) + while ( !tuh_msc_ready(usb_addr) ) { // TODO should have timeout here #if CFG_TUSB_OS != OPT_OS_NONE |
