Skip to content

Commit 347de3e

Browse files
committed
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.
1 parent 78602a2 commit 347de3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ports/stm32/usbdev/core/src/usbd_ctlreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ static void USBD_SetConfig(USBD_HandleTypeDef *pdev ,
479479
USBD_SetupReqTypedef *req)
480480
{
481481

482-
static uint8_t cfgidx;
482+
uint8_t cfgidx;
483483

484484
cfgidx = (uint8_t)(req->wValue);
485485

0 commit comments

Comments
 (0)