From 3ca88d8a5aa798f1fe3ec46dad221e5dffbcdc28 Mon Sep 17 00:00:00 2001 From: Christina Quast Date: Sat, 4 Apr 2015 17:50:36 +0200 Subject: [PATCH] USBDDriver: Corrected config array off by one --- .../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 03534cd7..95346bc2 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[cfgnum]; + pConfiguration = pDriver->pDescriptors->pFsConfiguration[cfgnum-1]; } /* Set & save the desired configuration */