mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 21:58:33 +03:00
USBDDriver: Corrected config array off by one
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user