From c587e6bc44ae99547f5d129c8924471329a7e4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Tue, 17 Dec 2024 15:58:18 +0100 Subject: [PATCH] Explicitly stop listening before async operations --- esp-hal/src/spi/master.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/esp-hal/src/spi/master.rs b/esp-hal/src/spi/master.rs index 6972db4018..7c2a4ac31a 100644 --- a/esp-hal/src/spi/master.rs +++ b/esp-hal/src/spi/master.rs @@ -3077,6 +3077,7 @@ impl Driver { /// Starts the operation and waits for it to complete. async fn execute_operation_async(&self) { + self.stop_listening(); self.clear_done_interrupt(); self.start_operation(); SpiFuture::new(self).await;