summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-03-05 05:45:42 -0800
committerGitHub <[email protected]>2019-03-05 05:45:42 -0800
commit8418cb816bbc0b760c102921875016a8ba31167d (patch)
treec9c0e1718779d889aaa47979f3c5b3c4d423297b /src/host
parent49aa6ec2516eddb2202c82a415b89be919bf1dd1 (diff)
parenta19455d1ff2581b07b1ace00f5a2820165bd8e98 (diff)
Merge branch 'master' into stm32f4
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 4334729e9..a7e7c2acd 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -620,6 +620,9 @@ bool enum_task(hcd_event_t* event)
*/
void tuh_task(void)
{
+ // Skip if stack is not initialized
+ if ( !tusb_inited() ) return;
+
// Loop until there is no more events in the queue
while (1)
{