From 35c9e861a93ae0066aabb23544329a4e80dbf162 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Sat, 4 Apr 2015 09:53:49 +0200 Subject: [PATCH] USBDDriver.c: Fixed set configuration bug On setConfiguration the first entry in the configuration entry was always taken. Now it takes cfgNum as index number. --- .../atmel_softpack_libraries/usb/device/core/USBDDriver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sam3s_example/atmel_softpack_libraries/usb/device/core/USBDDriver.c b/sam3s_example/atmel_softpack_libraries/usb/device/core/USBDDriver.c index eb35f58a..03534cd7 100644 --- a/sam3s_example/atmel_softpack_libraries/usb/device/core/USBDDriver.c +++ b/sam3s_example/atmel_softpack_libraries/usb/device/core/USBDDriver.c @@ -92,7 +92,7 @@ static void SetConfiguration(USBDDriver *pDriver, uint8_t cfgnum) } else { - pConfiguration = pDriver->pDescriptors->pFsConfiguration[0]; + pConfiguration = pDriver->pDescriptors->pFsConfiguration[cfgnum]; } /* Set & save the desired configuration */