diff options
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 9c08a7932..d4eccf0c4 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -240,6 +240,9 @@ static void usbd_reset(uint8_t rhport) */
void tud_task (void)
{
+ // Skip if stack is not initialized
+ if ( !tusb_inited() ) return;
+
// Loop until there is no more events in the queue
while (1)
{
|
