Skip to content

Commit

Permalink
Explicitly stop listening before async operations
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Dec 17, 2024
1 parent 4e524ec commit c587e6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions esp-hal/src/spi/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c587e6b

Please sign in to comment.