Skip to content

Commit

Permalink
NoAck -> SelfTest
Browse files Browse the repository at this point in the history
  • Loading branch information
playfulFence committed Aug 12, 2024
1 parent 6c302ec commit 28b9088
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions esp-hal/src/twai/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
//! can_rx_pin,
//! &clocks,
//! CAN_BAUDRATE,
//! TwaiMode::NoAck
//! TwaiMode::SelfTest
//! );
//!
//! // Partially filter the incoming messages to reduce overhead of receiving
Expand Down Expand Up @@ -249,7 +249,7 @@ pub enum TwaiMode {
Normal,
/// Self-test mode (no acknowledgement required for a successful message
/// transmission)
NoAck,
SelfTest,
/// Listen only operating mode
ListenOnly,
}
Expand Down Expand Up @@ -758,7 +758,7 @@ where
TwaiMode::Normal => {
// Do nothing special, the default state is Normal mode.
}
TwaiMode::NoAck => {
TwaiMode::SelfTest => {
// Set the self-test mode (no acknowledgement required)
T::register_block()
.mode()
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/twai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn main() -> ! {

// Begin configuring the TWAI peripheral. The peripheral is in a reset like
// state that prevents transmission but allows configuration.
// For self-testing use `NoAck` mode of the TWAI peripheral.
// For self-testing use `SelfTest` mode of the TWAI peripheral.
let mut can_config = twai::TwaiConfiguration::new_no_transceiver(
peripherals.TWAI0,
can_tx_pin,
Expand Down

0 comments on commit 28b9088

Please sign in to comment.