We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a295ee commit 6c3b828Copy full SHA for 6c3b828
class/msc/usbh_msc.c
@@ -13,6 +13,10 @@
13
14
#define DEV_FORMAT "/dev/sd%c"
15
16
+#ifndef CONFIG_USBHOST_MSC_READY_CHECK_TIMES
17
+#define CONFIG_USBHOST_MSC_READY_CHECK_TIMES 10
18
+#endif
19
+
20
USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_msc_cbw_csw[CONFIG_USBHOST_MAX_MSC_CLASS][USB_ALIGN_UP(64, CONFIG_USB_ALIGN_SIZE)];
21
USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_msc_buf[CONFIG_USBHOST_MAX_MSC_CLASS][USB_ALIGN_UP(64, CONFIG_USB_ALIGN_SIZE)];
22
@@ -323,7 +327,7 @@ static int usbh_msc_connect(struct usbh_hubport *hport, uint8_t intf)
323
327
USB_LOG_ERR("Fail to scsi_testunitready\r\n");
324
328
}
325
329
cnt++;
326
- if (cnt > 10) {
330
+ if (cnt > CONFIG_USBHOST_MSC_READY_CHECK_TIMES) {
331
return -USB_ERR_BUSY;
332
333
0 commit comments