mirror of https://gerrit.osmocom.org/simtrace2
USBDDriver: Corrected config array off by one
This commit is contained in:
parent
0becc0c51c
commit
3ca88d8a5a
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue