summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-04-20 14:37:42 +0700
committerhathach <[email protected]>2022-04-20 14:37:42 +0700
commit669e36d674d4b67b56127d8b41928a6dd3bdca7b (patch)
tree4b14bbc69722ef3e85ce17c26dc047bcbe8545ec /examples
parenta90839688c11338451729838e45ae3aaa58864fe (diff)
fix freertos issue when 1 tick > 1 ms
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_msc_freertos/src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/device/cdc_msc_freertos/src/main.c b/examples/device/cdc_msc_freertos/src/main.c
index 0a1c964ae..c0fc722f4 100644
--- a/examples/device/cdc_msc_freertos/src/main.c
+++ b/examples/device/cdc_msc_freertos/src/main.c
@@ -132,6 +132,8 @@ void usb_device_task(void* param)
{
// tinyusb device task
tud_task();
+
+ tud_cdc_write_flush();
}
}
@@ -194,12 +196,8 @@ void cdc_task(void* params)
// for throughput test e.g
// $ dd if=/dev/zero of=/dev/ttyACM0 count=10000
tud_cdc_write(buf, count);
- tud_cdc_write_flush();
}
}
-
- // For ESP32-S2 this delay is essential to allow idle how to run and reset wdt
- vTaskDelay(pdMS_TO_TICKS(10));
}
}