diff --git a/src/lib.rs b/src/lib.rs index 5e5f899..79ba68e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -461,5 +461,5 @@ impl UsbBus for UsbDevice { } const RESTRICT_RW_FLAG: u8 = !(1 << 5); -const USBINT_CLEAR: u8 = !(1 << 0); -const UDINT_CLEAR: u8 = !(1 << 1 | 1 << 7); +const USBINT_CLEAR: u8 = 1 << 0; +const UDINT_CLEAR: u8 = !(1 << 7 | 1 << 1);