Skip to content

Commit

Permalink
Fix C6 interrupt handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpaterson committed Nov 17, 2023
1 parent 175c1ba commit 86550f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp-hal-common/src/twai/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ mod asynch {
let _ = rx_queue.try_send(Err(EspTwaiError::EmbeddedHAL(ErrorKind::Overrun)));
}

let frame = unsafe { read_frame(register_block) };
let frame = TWAI0::read_frame();

let _ = rx_queue.try_send(Ok(frame));

Expand Down Expand Up @@ -1069,7 +1069,7 @@ mod asynch {
let _ = rx_queue.try_send(Err(EspTwaiError::EmbeddedHAL(ErrorKind::Overrun)));
}

let frame = unsafe { read_frame(register_block) };
let frame = TWAI1::read_frame();

let _ = rx_queue.try_send(Ok(frame));

Expand Down

0 comments on commit 86550f2

Please sign in to comment.