Skip to content

Commit

Permalink
Little optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
HiFiPhile committed May 9, 2024
1 parent eea7d7b commit 36ba42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/usbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 36ba42c

Please sign in to comment.