summaryrefslogtreecommitdiff
path: root/examples/device/cdc_uac2/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-11-08 15:54:02 +0700
committerhathach <[email protected]>2025-11-08 15:54:02 +0700
commit7f173ab5ed6a80a5fd6780779fe63fb97d2be0e9 (patch)
treea8e3a74d5e2eeb1b43da42b6b23e597dda63cbe6 /examples/device/cdc_uac2/src
parentb83b36b35438bd80f743945ef58f8189b1f701e0 (diff)
fix more alerts
Diffstat (limited to 'examples/device/cdc_uac2/src')
-rw-r--r--examples/device/cdc_uac2/src/cdc_app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/cdc_uac2/src/cdc_app.c b/examples/device/cdc_uac2/src/cdc_app.c
index e3ad8a9ac..6d18a0e69 100644
--- a/examples/device/cdc_uac2/src/cdc_app.c
+++ b/examples/device/cdc_uac2/src/cdc_app.c
@@ -48,7 +48,7 @@ void tud_cdc_rx_cb(uint8_t itf) {
// connected() check for DTR bit
// Most but not all terminal client set this when making connection
if (tud_cdc_connected()) {
- if (tud_cdc_available()) {
+ if (tud_cdc_available() > 0) {
count = tud_cdc_n_read(itf, buf, sizeof(buf));
(void) count;