From 786062aa74dc9d160d13e104b9d7991525ac8b1f Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Tue, 2 Aug 2022 22:04:07 +0000 Subject: [PATCH] To clear a bit in sie_status, just write that single bit --- rp2040-hal/src/usb.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rp2040-hal/src/usb.rs b/rp2040-hal/src/usb.rs index c98ee49..0a36dc6 100644 --- a/rp2040-hal/src/usb.rs +++ b/rp2040-hal/src/usb.rs @@ -544,7 +544,7 @@ impl UsbBusTrait for UsbBus { inner .ctrl_reg .sie_status - .modify(|_, w| w.suspended().set_bit()); + .write(|w| w.suspended().set_bit()); }); } fn resume(&self) { @@ -553,7 +553,7 @@ impl UsbBusTrait for UsbBus { inner .ctrl_reg .sie_status - .modify(|_, w| w.resume().set_bit()); + .write(|w| w.resume().set_bit()); }); } fn poll(&self) -> PollResult {