diff options
| author | hathach <[email protected]> | 2021-05-22 16:27:28 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-05-22 16:27:28 +0700 |
| commit | 99add05aa78a0fd5d462ab822d0c4656c41c59d7 (patch) | |
| tree | 6e541c588545e4385b9449392acfa93ee43f5d3d /examples | |
| parent | 327336e921cb75359878a4cf5c77af323dd8da14 (diff) | |
simplify hid api
add hid set_protocol() and set_protocol_complete_cb()
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/hid_app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/host/cdc_msc_hid/src/hid_app.c b/examples/host/cdc_msc_hid/src/hid_app.c index de92ab841..72e7c30db 100644 --- a/examples/host/cdc_msc_hid/src/hid_app.c +++ b/examples/host/cdc_msc_hid/src/hid_app.c @@ -64,7 +64,7 @@ void tuh_hid_mounted_cb(uint8_t dev_addr, uint8_t instance, uint8_t const* desc_ // Interface protocol const char* protocol_str[] = { "None", "Keyboard", "Mouse" }; // hid_protocol_type_t - uint8_t const interface_protocol = tuh_n_hid_n_interface_protocol(dev_addr, instance); + uint8_t const interface_protocol = tuh_n_hid_interface_protocol(dev_addr, instance); printf(", Interface protocol = %s, ", protocol_str[interface_protocol]); } |
