diff options
| author | hathach <[email protected]> | 2025-07-02 15:38:14 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-07-02 15:38:14 +0700 |
| commit | a8b5e2bfc0a2d35ba775f7b2de81d531ed525e41 (patch) | |
| tree | 98007b91887c7ef9e3745c893d7607ecb7a2fe6e /examples/host | |
| parent | 0388700ad7c0fc8565457a56d7e7bd5744ac0d1d (diff) | |
update example
Diffstat (limited to 'examples/host')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/cdc_app.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/host/cdc_msc_hid/src/cdc_app.c b/examples/host/cdc_msc_hid/src/cdc_app.c index 2fa9a8560..97f1a96d6 100644 --- a/examples/host/cdc_msc_hid/src/cdc_app.c +++ b/examples/host/cdc_msc_hid/src/cdc_app.c @@ -72,7 +72,10 @@ void tuh_cdc_rx_cb(uint8_t idx) { if (count) { buf[count] = 0; printf("%s", (char*) buf); - fflush(stdout); + + #ifndef __ICCARM__ // TODO IAR doesn't support stream control ? + fflush(stdout);// flush right away, else nanolib will wait for newline + #endif } } |
