diff options
| author | hathach <[email protected]> | 2024-11-07 15:04:19 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-11-07 15:04:19 +0700 |
| commit | 9920ebff4ac5c5d60ca228897713a1c154ab6b57 (patch) | |
| tree | dd7ab5013ddf8159dd8ef042c4277c594d371637 /examples/host/cdc_msc_hid/src | |
| parent | 4baeeeb564ca4c06a2c7b65fabf764fe0d96e93c (diff) | |
update bsp for h7 to support host mode
Diffstat (limited to 'examples/host/cdc_msc_hid/src')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/hid_app.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/host/cdc_msc_hid/src/hid_app.c b/examples/host/cdc_msc_hid/src/hid_app.c index 6bb3a2072..3f98ec89f 100644 --- a/examples/host/cdc_msc_hid/src/hid_app.c +++ b/examples/host/cdc_msc_hid/src/hid_app.c @@ -130,13 +130,12 @@ void tuh_hid_report_received_cb(uint8_t dev_addr, uint8_t instance, uint8_t cons //--------------------------------------------------------------------+ // look up new key in previous keys -static inline bool find_key_in_report(hid_keyboard_report_t const *report, uint8_t keycode) -{ - for(uint8_t i=0; i<6; i++) - { - if (report->keycode[i] == keycode) return true; +static inline bool find_key_in_report(hid_keyboard_report_t const* report, uint8_t keycode) { + for (uint8_t i = 0; i < 6; i++) { + if (report->keycode[i] == keycode) { + return true; + } } - return false; } |
