samples: hid: set boot interface Protocol Code
Update sampele to show how to set boot interface Protocol Code. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
91ddb8c9fe
commit
5ebb4214c9
1 changed files with 4 additions and 0 deletions
|
@ -165,6 +165,10 @@ static int composite_pre_init(const struct device *dev)
|
|||
atomic_set_bit(hid_ep_in_busy, HID_EP_BUSY_FLAG);
|
||||
k_timer_start(&event_timer, REPORT_PERIOD, REPORT_PERIOD);
|
||||
|
||||
if (usb_hid_set_proto_code(hdev, HID_BOOT_IFACE_CODE_NONE)) {
|
||||
LOG_WRN("Failed to set Protocol Code");
|
||||
}
|
||||
|
||||
return usb_hid_init(hdev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue