mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +00:00
services/usb-device-xous: initialize UsbClass before UsbDevice
This commit is contained in:
parent
fe7678cff3
commit
acc1871ab0
1 changed files with 2 additions and 2 deletions
|
|
@ -138,14 +138,14 @@ impl<'a, B: UsbBus> AppHID<'a, B> {
|
||||||
config: AppHIDConfig<'a>,
|
config: AppHIDConfig<'a>,
|
||||||
max_stored_reports: usize,
|
max_stored_reports: usize,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
|
let class = UsbHidClassBuilder::new().add_device(config).build(alloc);
|
||||||
|
|
||||||
let device = UsbDeviceBuilder::new(alloc, vid_pid)
|
let device = UsbDeviceBuilder::new(alloc, vid_pid)
|
||||||
.manufacturer("Kosagi")
|
.manufacturer("Kosagi")
|
||||||
.product("Precursor")
|
.product("Precursor")
|
||||||
.serial_number(&serial_number)
|
.serial_number(&serial_number)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let class = UsbHidClassBuilder::new().add_device(config).build(alloc);
|
|
||||||
|
|
||||||
AppHID {
|
AppHID {
|
||||||
max_stored_reports,
|
max_stored_reports,
|
||||||
incoming_reports: VecDeque::new(),
|
incoming_reports: VecDeque::new(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue