From 5f933aa7c13311288e4dfedd858463563554b55d Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Tue, 24 Jan 2023 08:17:24 +0000 Subject: [PATCH] Only set the set_suc_eof flag on the last item (#359) It was previously hardcoded to true, which meant a DMA suc eof interrupt would fire for every descriptor that was processed --- esp-hal-common/src/dma/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp-hal-common/src/dma/mod.rs b/esp-hal-common/src/dma/mod.rs index f73ffd4fa70..74ad39317b3 100644 --- a/esp-hal-common/src/dma/mod.rs +++ b/esp-hal-common/src/dma/mod.rs @@ -513,7 +513,7 @@ pub(crate) mod private { let mut dw0 = &mut descriptors[descr]; - dw0.set_suc_eof(true); + dw0.set_suc_eof(last); dw0.set_owner(Owner::Dma); dw0.set_size(chunk_size as u16); // align to 32 bits? dw0.set_length(chunk_size as u16); // actual size of the data!?