From 908eef2775df870a8c04138cb81400c5b3ecf9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Alse=CC=81r?= Date: Tue, 22 Nov 2022 02:03:34 +0100 Subject: [PATCH] Change interrupt modify into write --- embassy-rp/src/adc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-rp/src/adc.rs b/embassy-rp/src/adc.rs index cdb752dc..025c6f91 100644 --- a/embassy-rp/src/adc.rs +++ b/embassy-rp/src/adc.rs @@ -65,7 +65,7 @@ impl<'d> Adc<'d> { irq.disable(); irq.set_handler(|_| unsafe { let r = Self::regs(); - r.inte().modify(|w| w.set_fifo(false)); + r.inte().write(|w| w.set_fifo(false)); WAKER.wake(); }); irq.unpend(); @@ -77,7 +77,7 @@ impl<'d> Adc<'d> { async fn wait_for_ready() { let r = Self::regs(); unsafe { - r.inte().modify(|w| w.set_fifo(true)); + r.inte().write(|w| w.set_fifo(true)); compiler_fence(Ordering::SeqCst); poll_fn(|cx| { WAKER.register(cx.waker());