mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-18 22:38:32 +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 {
|
else {
|
||||||
|
|
||||||
pConfiguration = pDriver->pDescriptors->pFsConfiguration[cfgnum];
|
pConfiguration = pDriver->pDescriptors->pFsConfiguration[cfgnum-1];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set & save the desired configuration */
|
/* Set & save the desired configuration */
|
||||||
|
|||||||
Reference in New Issue
Block a user