Skip to content

Commit

Permalink
Only clear specific interrupt bit when listening for an "in progress"…
Browse files Browse the repository at this point in the history
… interrupt
  • Loading branch information
Dominic Fischer committed Jul 21, 2024
1 parent ab33386 commit 814e99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp-hal/src/dma/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,7 @@ pub(crate) mod asynch {
) -> Poll<Self::Output> {
TX::waker().register(cx.waker());
if self.tx.is_ch_out_done_set() {
self.tx.clear_interrupts();
self.tx.clear_ch_out_done();
Poll::Ready(Ok(()))
} else if self.tx.has_error() {
self.tx.clear_interrupts();
Expand Down Expand Up @@ -2352,7 +2352,7 @@ pub(crate) mod asynch {
) -> Poll<Self::Output> {
RX::waker().register(cx.waker());
if self.rx.is_ch_in_done_set() {
self.rx.clear_interrupts();
self.rx.clear_ch_in_done();
Poll::Ready(Ok(()))
} else if self.rx.has_error()
|| self.rx.has_dscr_empty_error()
Expand Down

0 comments on commit 814e99c

Please sign in to comment.