diff options
| author | hathach <[email protected]> | 2026-04-02 23:30:06 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-04-03 10:45:13 +0700 |
| commit | 134e14849b1864ce3454950a50d2c79d93a96cd8 (patch) | |
| tree | a4c7f1d6eac8e5483c40789c895bc4ea3a71f5d6 /examples/host/cdc_msc_hid_freertos | |
| parent | b3d34cdf8962186d326dadf50421bb85f488c80a (diff) | |
fix hil host cdc echo test with imxrt and other fast mcu
Diffstat (limited to 'examples/host/cdc_msc_hid_freertos')
| -rw-r--r-- | examples/host/cdc_msc_hid_freertos/src/cdc_app.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/host/cdc_msc_hid_freertos/src/cdc_app.c b/examples/host/cdc_msc_hid_freertos/src/cdc_app.c index 0e0105980..30baacaac 100644 --- a/examples/host/cdc_msc_hid_freertos/src/cdc_app.c +++ b/examples/host/cdc_msc_hid_freertos/src/cdc_app.c @@ -53,7 +53,7 @@ void cdc_app_init(void) { } // helper -static size_t get_console_inputs(uint8_t *buf, size_t bufsize) { +static size_t console_read(uint8_t *buf, size_t bufsize) { size_t count = 0; while (count < bufsize) { int ch = board_getchar(); @@ -75,7 +75,7 @@ static void cdc_app_task(void* param) { uint32_t const bufsize = sizeof(buf) - 1; while (1) { - uint32_t count = get_console_inputs(buf, bufsize); + uint32_t count = console_read(buf, bufsize); buf[count] = 0; if (count) { |
