usb: samples: Register BOS capabilities before USB enable.
BOS descriptor capabilities shall be registered before the USB is enabled. Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no>
This commit is contained in:
parent
84096455ad
commit
7a252b90dc
1 changed files with 3 additions and 3 deletions
|
@ -287,6 +287,9 @@ void main(void)
|
|||
|
||||
LOG_DBG("");
|
||||
|
||||
usb_bos_register_cap((void *)&bos_cap_webusb);
|
||||
usb_bos_register_cap((void *)&bos_cap_msosv2);
|
||||
|
||||
/* Set the custom and vendor request handlers */
|
||||
webusb_register_request_handlers(&req_handlers);
|
||||
|
||||
|
@ -295,7 +298,4 @@ void main(void)
|
|||
LOG_ERR("Failed to enable USB");
|
||||
return;
|
||||
}
|
||||
|
||||
usb_bos_register_cap((void *)&bos_cap_webusb);
|
||||
usb_bos_register_cap((void *)&bos_cap_msosv2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue