stm32/usbdev: Change static function variable to non-static.
It's written straight away in the function on every call so it doesn't need to be static.
This commit is contained in:
parent
78602a217f
commit
347de3e218
|
@ -479,7 +479,7 @@ static void USBD_SetConfig(USBD_HandleTypeDef *pdev ,
|
|||
USBD_SetupReqTypedef *req)
|
||||
{
|
||||
|
||||
static uint8_t cfgidx;
|
||||
uint8_t cfgidx;
|
||||
|
||||
cfgidx = (uint8_t)(req->wValue);
|
||||
|
||||
|
|
Loading…
Reference in New Issue