From 347de3e218fe02bba6f7a4bccd1b90f8326c1efe Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 20 Sep 2017 17:45:21 +1000 Subject: [PATCH] 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. --- ports/stm32/usbdev/core/src/usbd_ctlreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/usbdev/core/src/usbd_ctlreq.c b/ports/stm32/usbdev/core/src/usbd_ctlreq.c index 80b1da8ea5..d744725b21 100644 --- a/ports/stm32/usbdev/core/src/usbd_ctlreq.c +++ b/ports/stm32/usbdev/core/src/usbd_ctlreq.c @@ -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);