From d3db3e0dd197d6ff1608dd2b07b6d9aa7d9e774f Mon Sep 17 00:00:00 2001 From: Dominic Fischer Date: Mon, 22 Jul 2024 10:07:03 +0100 Subject: [PATCH] Fix PARL_IO Rx --- esp-hal/src/parl_io.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/esp-hal/src/parl_io.rs b/esp-hal/src/parl_io.rs index 3f0d5eb7b30..9f241d833c1 100644 --- a/esp-hal/src/parl_io.rs +++ b/esp-hal/src/parl_io.rs @@ -1758,9 +1758,8 @@ pub mod asynch { } } - let future = DmaRxDoneChFuture::new(&mut self.rx_channel); - Self::start_receive_bytes_dma(future.rx, &mut self.rx_chain, ptr, len)?; - future.await?; + Self::start_receive_bytes_dma(&mut self.rx_channel, &mut self.rx_chain, ptr, len)?; + DmaRxDoneChFuture::new(&mut self.rx_channel).await?; Ok(()) }