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 Dec 3, 2023
1 parent e17c84e commit dd6e277
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 @@ -1028,7 +1028,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 @@ -1073,7 +1073,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 dd6e277

Please sign in to comment.