summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormajbthrd <[email protected]>2021-02-25 09:15:42 -0600
committerGitHub <[email protected]>2021-02-25 09:15:42 -0600
commitefea18a888098b779efc9edbd99335f58d0c2074 (patch)
treea9e52a183d4f37ffa0a024c825cd78a1475b32d3 /lib
parentc5422a5c48984f4ea2a5fb6b22f6778183002f68 (diff)
parent50a0bddd8b5f394215bdf36ac5b17a7386a77e3d (diff)
Merge branch 'master' into rp2040epaddr
Diffstat (limited to 'lib')
-rw-r--r--lib/fatfs/diskio.c2
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