mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
more const
This commit is contained in:
parent
23e6ee2ea2
commit
9c0d15fc43
@ -1132,7 +1132,7 @@ bool usbd_edpt_release(uint8_t rhport, uint8_t ep_addr)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// can only release the endpoint if it is claimed and not busy
|
// 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)
|
if (ret)
|
||||||
{
|
{
|
||||||
_usbd_dev.ep_status[epnum][dir].claimed = 0;
|
_usbd_dev.ep_status[epnum][dir].claimed = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user