diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-26 11:40:15 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-26 11:40:15 +0000 |
commit | 5e468010967b893feb7a623959d788d10e38940b (patch) | |
tree | d59067c51006614b2e1ce5ab340ad2c97d222207 /LUFA/Drivers/USB/Class/Host/CDC.c | |
parent | 9ba8da7412bc1879d09009c58e3c1fbed91aab24 (diff) | |
download | lufa-5e468010967b893feb7a623959d788d10e38940b.tar.gz lufa-5e468010967b893feb7a623959d788d10e38940b.tar.bz2 lufa-5e468010967b893feb7a623959d788d10e38940b.zip |
Complete RNDIS Host Class driver code - add SendPacket function.
Correct CDC Host Class driver token handling for sending data on bidirectional data endpoints.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Host/CDC.c')
-rw-r--r-- | LUFA/Drivers/USB/Class/Host/CDC.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/CDC.c b/LUFA/Drivers/USB/Class/Host/CDC.c index d1e63b591..20fa65988 100644 --- a/LUFA/Drivers/USB/Class/Host/CDC.c +++ b/LUFA/Drivers/USB/Class/Host/CDC.c @@ -280,7 +280,7 @@ uint8_t CDC_Host_SendString(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo, ch if (CDCInterfaceInfo->State.BidirectionalDataEndpoints)
{
Pipe_SelectPipe(CDCInterfaceInfo->Config.DataINPipeNumber);
- Pipe_SetPipeToken(PIPE_TOKEN_IN);
+ Pipe_SetPipeToken(PIPE_TOKEN_OUT);
}
else
{
@@ -307,7 +307,7 @@ uint8_t CDC_Host_SendByte(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo, cons if (CDCInterfaceInfo->State.BidirectionalDataEndpoints)
{
Pipe_SelectPipe(CDCInterfaceInfo->Config.DataINPipeNumber);
- Pipe_SetPipeToken(PIPE_TOKEN_IN);
+ Pipe_SetPipeToken(PIPE_TOKEN_OUT);
}
else
{
|