Skip to content

Commit

Permalink
update to embedded-hal-mock v0.11
Browse files Browse the repository at this point in the history
this contains a breaking change: `eh1::pin` was renamed to
`eh1::digital`.
  • Loading branch information
rursprung committed Jun 5, 2024
1 parent 5b15407 commit ae15699
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ embedded-hal = "1.0"
defmt = { version = "0.3", optional = true }

[dev-dependencies]
embedded-hal-mock = "0.10"
embedded-hal-mock = "0.11"
18 changes: 9 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ where
///
/// Usage example:
/// ```
/// # use embedded_hal_mock::eh1::pin::Mock as PinMock;
/// # use embedded_hal_mock::eh1::digital::Mock as PinMock;
/// # use embedded_hal_mock::eh1::pwm::Mock as PwmMock;
/// # use embedded_hal_mock::eh1::pwm::Transaction as PwmTransaction;
/// # use embedded_hal_mock::eh1::pin::Transaction as PinTransaction;
/// # use embedded_hal_mock::eh1::pin::State::{High, Low};
/// # use embedded_hal_mock::eh1::digital::Transaction as PinTransaction;
/// # use embedded_hal_mock::eh1::digital::State::{High, Low};
///
/// # let motor_a_in1 = PinMock::new(&[PinTransaction::set(Low)]);
/// # let mut motor_a_in1_ = motor_a_in1.clone();
Expand Down Expand Up @@ -233,11 +233,11 @@ where
///
/// Usage example:
/// ```
/// # use embedded_hal_mock::eh1::pin::Mock as PinMock;
/// # use embedded_hal_mock::eh1::digital::Mock as PinMock;
/// # use embedded_hal_mock::eh1::pwm::Mock as PwmMock;
/// # use embedded_hal_mock::eh1::pwm::Transaction as PwmTransaction;
/// # use embedded_hal_mock::eh1::pin::Transaction as PinTransaction;
/// # use embedded_hal_mock::eh1::pin::State::{Low};
/// # use embedded_hal_mock::eh1::digital::Transaction as PinTransaction;
/// # use embedded_hal_mock::eh1::digital::State::{Low};
/// # let motor_in1 = PinMock::new(&[PinTransaction::set(Low)]);
/// # let mut motor_in1_ = motor_in1.clone();
/// # let motor_in2 = PinMock::new(&[PinTransaction::set(Low)]);
Expand Down Expand Up @@ -344,9 +344,9 @@ where
#[cfg(test)]
mod tests {
use crate::{DriveCommand, Motor, MotorError};
use embedded_hal_mock::eh1::pin::Mock as PinMock;
use embedded_hal_mock::eh1::pin::State::{High, Low};
use embedded_hal_mock::eh1::pin::Transaction as PinTransaction;
use embedded_hal_mock::eh1::digital::Mock as PinMock;
use embedded_hal_mock::eh1::digital::State::{High, Low};
use embedded_hal_mock::eh1::digital::Transaction as PinTransaction;
use embedded_hal_mock::eh1::pwm::Mock as PwmMock;
use embedded_hal_mock::eh1::pwm::Transaction as PwmTransaction;

Expand Down

0 comments on commit ae15699

Please sign in to comment.