more const

This commit is contained in:
hathach 2020-09-14 22:23:59 +07:00
parent 23e6ee2ea2
commit 9c0d15fc43
1 changed files with 1 additions and 1 deletions

View File

@ -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;