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:
Alexander von Gluck IV 2012-07-22 12:06:27 -05:00
parent 52b7ccf49e
commit 8899214980

View File

@ -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);