summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2026-03-29 15:22:49 +0200
committerGitHub <[email protected]>2026-03-29 15:22:49 +0200
commitc64452cda50f126a339f776b5cdc3762ca82ff6e (patch)
tree098a8191426904ffb099c4b5dfc9e38cfb7286ab /src/device
parentbf8f0ec2a24339510810e2d1d473da8dfa187950 (diff)
parent653e6300a3dafbfb9f448879eaf874dca3e86a12 (diff)
Merge pull request #3566 from Precidata/async-cleanup
Couple of random cleanup patches following async PR
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 42903576c..3c14175f6 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -803,10 +803,8 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr) {
break;
}
-#if CFG_TUSB_OS != OPT_OS_NONE && CFG_TUSB_OS != OPT_OS_PICO
- // return if there is no more events, for application to run other background
- if (osal_queue_empty(_usbd_q)) { return; }
-#endif
+ // allow to exit tud_task() if there is no event in the next run
+ timeout_ms = 0;
}
}