diff options
| author | Ha Thach <[email protected]> | 2021-02-24 00:19:38 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-24 00:19:38 +0700 |
| commit | 656673fb580a7db347e8e141c609204954f749dd (patch) | |
| tree | b83e8177bb804a07c7f01d74f42374bf22f51545 /lib | |
| parent | 99d3a32ba24fd16e847f442cf9ad50bd07aa65dc (diff) | |
| parent | 451650fa32b245f2dc02c366b25fa802b75fbb1b (diff) | |
Merge pull request #674 from hathach/host-msc
Enhance Host MSC
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 |
