usbhost: Do not disable usb monitor if usb host is enabled but dev is not

This commit is contained in:
Brennan Ashton
2021-03-28 12:45:15 -07:00
committed by Xiang Xiao
parent 6106557034
commit 4851d232c0
18 changed files with 224 additions and 66 deletions
+9 -1
View File
@@ -115,11 +115,19 @@
/* Check if we should enable the USB monitor before starting NSH */
#ifndef CONFIG_USBMONITOR
# undef HAVE_USBMONITOR
#endif
#ifndef HAVE_USBDEV
# undef CONFIG_USBDEV_TRACE
#endif
#if !defined(CONFIG_USBMONITOR) || !defined(CONFIG_USBDEV_TRACE)
#ifndef HAVE_USBHOST
# undef CONFIG_USBHOST_TRACE
#endif
#if !defined(CONFIG_USBDEV_TRACE) && !defined(CONFIG_USBHOST_TRACE)
# undef HAVE_USBMONITOR
#endif