summaryrefslogtreecommitdiff
path: root/examples/host
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/host
parentb83b36b35438bd80f743945ef58f8189b1f701e0 (diff)
fix more alerts
Diffstat (limited to 'examples/host')
-rw-r--r--examples/host/cdc_msc_hid/src/cdc_app.c2
1 files changed, 1 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 d3daedffc..4c2c5e807 100644
--- a/examples/host/cdc_msc_hid/src/cdc_app.c
+++ b/examples/host/cdc_msc_hid/src/cdc_app.c
@@ -51,7 +51,7 @@ void cdc_app_task(void) {
for (uint8_t idx = 0; idx < CFG_TUH_CDC; idx++) {
if (tuh_cdc_mounted(idx)) {
// console --> cdc interfaces
- if (count) {
+ if (count > 0) {
tuh_cdc_write(idx, buf, count);
tuh_cdc_write_flush(idx);
}