usb_serial: Fix typo, set up endpoints properly
* Can successfully send data to Option USB serial device now (I need to do some testing before turning it on though)
This commit is contained in:
parent
52b7ccf49e
commit
8899214980
@ -64,8 +64,8 @@ OptionDevice::AddDevice(const usb_configuration_info *config)
|
||||
TRACE("> OptionDevice::%s: found at interface %d\n", __func__,
|
||||
index);
|
||||
usb_endpoint_info *irEndpoint = &interface->endpoint[irEndpointID];
|
||||
usb_endpoint_info *txEndpoint = &interface->endpoint[irEndpointID];
|
||||
usb_endpoint_info *rxEndpoint = &interface->endpoint[irEndpointID];
|
||||
usb_endpoint_info *txEndpoint = &interface->endpoint[txEndpointID];
|
||||
usb_endpoint_info *rxEndpoint = &interface->endpoint[rxEndpointID];
|
||||
SetControlPipe(irEndpoint->handle);
|
||||
SetReadPipe(rxEndpoint->handle);
|
||||
SetWritePipe(txEndpoint->handle);
|
||||
|
Loading…
Reference in New Issue
Block a user