diff options
| author | hathach <[email protected]> | 2019-01-29 20:13:17 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-29 20:13:17 +0700 |
| commit | 29b49199beb8e9b5fead83e5cd36105f8746f1d7 (patch) | |
| tree | 5fec0508a84fd7b75b21b16b13ef6181d97eaaa5 /src/host | |
| parent | bd5325612620209e7964f10817a57f916d3bc13f (diff) | |
| parent | 1a84f5da5496e7ea410e9023253b30933c207159 (diff) | |
Merge pull request #34 from hathach/develop
add tusb_inited(), better compatible with nrf SD
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 3 |
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)
{
|
