From 9939d438007f33bc57697be97c9a73ee001fe737 Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Fri, 24 Mar 2023 12:14:23 +0200 Subject: [PATCH] fix: PR comment Signed-off-by: Lachezar Lechev --- embassy-rp/src/spi.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/embassy-rp/src/spi.rs b/embassy-rp/src/spi.rs index c48e33fc..e6682ad6 100644 --- a/embassy-rp/src/spi.rs +++ b/embassy-rp/src/spi.rs @@ -404,13 +404,8 @@ impl<'d, T: Instance> Spi<'d, T, Async> { if from_len > to_len { let write_bytes_len = from_len - to_len; - // disable incrementation of buffer - tx_ch.regs().ctrl_trig().modify(|ctrl_trig| { - ctrl_trig.set_incr_write(false); - ctrl_trig.set_incr_read(false); - }); - // write dummy data + // this will disable incrementation of the buffers crate::dma::write_repeated(tx_ch, p.dr().ptr() as *mut u8, write_bytes_len, T::TX_DREQ).await } }