From ae948415a79937c30ff5774b2483926287dad962 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 15 Jul 2021 15:34:48 +0200 Subject: [PATCH] stm32/dma: disable after finishing --- embassy-stm32/src/dma/bdma.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/embassy-stm32/src/dma/bdma.rs b/embassy-stm32/src/dma/bdma.rs index 37bd24d0..c6e77488 100644 --- a/embassy-stm32/src/dma/bdma.rs +++ b/embassy-stm32/src/dma/bdma.rs @@ -99,8 +99,6 @@ pub(crate) async unsafe fn do_transfer( }) .await; - on_drop.defuse(); - // TODO handle error assert!(res == CH_STATUS_COMPLETED); }