diff options
| author | hathach <[email protected]> | 2022-12-21 13:05:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-12-21 13:05:45 +0700 |
| commit | cd9008e5a9c8da81d9736f7e0bf72c5ba409a7f1 (patch) | |
| tree | 904819bb29ee6a97aea792614db6e6e190c78c88 /examples | |
| parent | 84a483f5ea7446a5cc1a9fe957379dd1f0a6fd4c (diff) | |
add tuh_cdc_tx_complete_cb() callback
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/cdc_app.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/host/cdc_msc_hid/src/cdc_app.c b/examples/host/cdc_msc_hid/src/cdc_app.c index 23ea05b2b..dd3196146 100644 --- a/examples/host/cdc_msc_hid/src/cdc_app.c +++ b/examples/host/cdc_msc_hid/src/cdc_app.c @@ -87,7 +87,7 @@ void tuh_cdc_rx_cb(uint8_t idx) void tuh_cdc_mount_cb(uint8_t idx) { - tuh_cdc_itf_info_t itf_info; + tuh_cdc_itf_info_t itf_info = { 0 }; tuh_cdc_itf_get_info(idx, &itf_info); printf("CDC Interface is mounted: device address = %u, itf_num = %u\r\n", itf_info.daddr, itf_info.bInterfaceNumber); @@ -95,7 +95,7 @@ void tuh_cdc_mount_cb(uint8_t idx) void tuh_cdc_umount_cb(uint8_t idx) { - tuh_cdc_itf_info_t itf_info; + tuh_cdc_itf_info_t itf_info = { 0 }; tuh_cdc_itf_get_info(idx, &itf_info); printf("CDC Interface is unmounted: device address = %u, itf_num = %u\r\n", itf_info.daddr, itf_info.bInterfaceNumber); |
