summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-09-14 22:23:59 +0700
committerhathach <[email protected]>2020-09-14 22:23:59 +0700
commit9c0d15fc43818282b6a92432e675dd214e51735e (patch)
treeefde707ed1b139e227944e2a9145a33a72934614 /src/device
parent23e6ee2ea2e69f09b43c9f7736b95560a6e9ef7b (diff)
more const
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index dfe30578e..d1e984a0e 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -1132,7 +1132,7 @@ bool usbd_edpt_release(uint8_t rhport, uint8_t ep_addr)
#endif
// can only release the endpoint if it is claimed and not busy
- bool ret = (_usbd_dev.ep_status[epnum][dir].busy == 0) && (_usbd_dev.ep_status[epnum][dir].claimed == 1);
+ bool const ret = (_usbd_dev.ep_status[epnum][dir].busy == 0) && (_usbd_dev.ep_status[epnum][dir].claimed == 1);
if (ret)
{
_usbd_dev.ep_status[epnum][dir].claimed = 0;