summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-05-28 18:23:46 +0700
committerhathach <[email protected]>2026-05-28 18:23:46 +0700
commitc5676382c7d5cad7b6cfe5dc185d9891b89241f2 (patch)
treef9f155fd18f84b7aaf3ff76ff5339a38bbacd56a /examples/device
parentc954c8c4c70df616e429d8e7ae1c382d3043acea (diff)
abstract OS logic with `CFG_TUSB_OS_HAS_SCHEDULER` to simplify conditional checks
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/msc_dual_lun/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/msc_dual_lun/src/main.c b/examples/device/msc_dual_lun/src/main.c
index a4ade6f9b..1d764f12c 100644
--- a/examples/device/msc_dual_lun/src/main.c
+++ b/examples/device/msc_dual_lun/src/main.c
@@ -71,7 +71,7 @@ static void usb_device_init(void) {
board_init_after_tusb();
}
-#if CFG_TUSB_OS != OPT_OS_NONE && CFG_TUSB_OS != OPT_OS_PICO
+#if CFG_TUSB_OS_HAS_SCHEDULER
static void usb_device_task(RTOS_PARAM param) {
(void) param;
usb_device_init();