aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Class/Host/RNDISClassHost.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2014-03-05 21:41:45 +1100
committerDean Camera <dean@fourwalledcubicle.com>2014-03-05 21:41:45 +1100
commit261284f5e1193de0879a7ecf77c5995ce35f6527 (patch)
tree52f8b6dbad85f317ae11b030197d4e1eb06b14d7 /LUFA/Drivers/USB/Class/Host/RNDISClassHost.c
parent00ddff45c159eb8971b38fc4d5ee5b8375addfb2 (diff)
downloadlufa-261284f5e1193de0879a7ecf77c5995ce35f6527.tar.gz
lufa-261284f5e1193de0879a7ecf77c5995ce35f6527.tar.bz2
lufa-261284f5e1193de0879a7ecf77c5995ce35f6527.zip
Fix incorrect error codes returned on pip config failure in the host class drivers.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Host/RNDISClassHost.c')
-rw-r--r--LUFA/Drivers/USB/Class/Host/RNDISClassHost.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Drivers/USB/Class/Host/RNDISClassHost.c b/LUFA/Drivers/USB/Class/Host/RNDISClassHost.c
index 9072d3aa6..3ed51c8d9 100644
--- a/LUFA/Drivers/USB/Class/Host/RNDISClassHost.c
+++ b/LUFA/Drivers/USB/Class/Host/RNDISClassHost.c
@@ -114,13 +114,13 @@ uint8_t RNDIS_Host_ConfigurePipes(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfa
RNDISInterfaceInfo->Config.NotificationPipe.Type = EP_TYPE_INTERRUPT;
if (!(Pipe_ConfigurePipeTable(&RNDISInterfaceInfo->Config.DataINPipe, 1)))
- return false;
+ return RNDIS_ENUMERROR_PipeConfigurationFailed;
if (!(Pipe_ConfigurePipeTable(&RNDISInterfaceInfo->Config.DataOUTPipe, 1)))
- return false;
+ return RNDIS_ENUMERROR_PipeConfigurationFailed;
if (!(Pipe_ConfigurePipeTable(&RNDISInterfaceInfo->Config.NotificationPipe, 1)))
- return false;
+ return RNDIS_ENUMERROR_PipeConfigurationFailed;
RNDISInterfaceInfo->State.ControlInterfaceNumber = RNDISControlInterface->InterfaceNumber;
RNDISInterfaceInfo->State.IsActive = true;