mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-14 04:18:56 +00:00
Little optimization.
This commit is contained in:
parent
eea7d7b327
commit
36ba42cc0f
@ -1391,7 +1391,7 @@ void usbd_sof_enable(uint8_t rhport, sof_consumer_t consumer, bool en) {
|
||||
}
|
||||
|
||||
// Test logically unequal
|
||||
if(!!_usbd_dev.sof_consumer != !!consumer_old) {
|
||||
if(!_usbd_dev.sof_consumer != !consumer_old) {
|
||||
dcd_sof_enable(rhport, _usbd_dev.sof_consumer);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user