Little optimization.

This commit is contained in:
HiFiPhile 2024-05-09 22:57:25 +02:00
parent eea7d7b327
commit 36ba42cc0f

View File

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