Skip to content

Commit 8820c52

Browse files
committed
Cleanup: remove redundant interrupt::free
1 parent c9cdd0d commit 8820c52

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/bus.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,7 @@ impl<USB: UsbPeripheral> usb_device::bus::UsbBus for UsbBus<USB> {
218218

219219
if v.ctr_tx().bit_is_set() {
220220
ep_in_complete |= bit;
221-
222-
interrupt::free(|cs| {
223-
ep.clear_ctr_tx(cs);
224-
});
221+
ep.clear_ctr_tx(cs);
225222
}
226223

227224
bit <<= 1;

0 commit comments

Comments
 (0)