diff options
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 59ada3bdd8..48e9442420 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c @@ -355,10 +355,7 @@ static bool check_disk_present(IF_MD_NONVOID(int volume)) #ifdef USB_USE_RAMDISK return true; #else - unsigned char* sector = fat_get_sector_buffer(); - bool success = storage_read_sectors(IF_MD(volume,)0,1,sector) == 0; - fat_release_sector_buffer(); - return success; + return disk_present(IF_MD(volume)); #endif } |