diff options
author | Damien George <damien.p.george@gmail.com> | 2017-09-20 17:45:21 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-09-20 17:45:21 +1000 |
commit | 347de3e218fe02bba6f7a4bccd1b90f8326c1efe (patch) | |
tree | 508c421fcdc6ac4698e0086bee2f6ab1c9334b65 | |
parent | 78602a217f921f5f9737a5fb7974d4b61d313742 (diff) |
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.
-rw-r--r-- | ports/stm32/usbdev/core/src/usbd_ctlreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/usbdev/core/src/usbd_ctlreq.c b/ports/stm32/usbdev/core/src/usbd_ctlreq.c index 80b1da8ea..d744725b2 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);
|