aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander von Gluck IV <kallisti5@unixzen.com>2012-07-22 12:06:27 -0500
committerAlexander von Gluck IV <kallisti5@unixzen.com>2012-07-22 12:06:27 -0500
commit8899214980d031c69441a29c5c122e3fd592d0b7 (patch)
treec164ea232f49d7a3e8ff6ca98ffa0fe3d7f396a2
parent52b7ccf49e8215e58c9c341e013999ee1795848b (diff)
usb_serial: Fix typo, set up endpoints properlyhrev44380
* Can successfully send data to Option USB serial device now (I need to do some testing before turning it on though)
-rw-r--r--src/add-ons/kernel/drivers/ports/usb_serial/Option.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/add-ons/kernel/drivers/ports/usb_serial/Option.cpp b/src/add-ons/kernel/drivers/ports/usb_serial/Option.cpp
index 8c0de2a0f7..d82812d6dd 100644
--- a/src/add-ons/kernel/drivers/ports/usb_serial/Option.cpp
+++ b/src/add-ons/kernel/drivers/ports/usb_serial/Option.cpp
@@ -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);