Skip to content

Commit

Permalink
Update embedded-hal-mock
Browse files Browse the repository at this point in the history
  • Loading branch information
avsaase committed Jan 24, 2025
1 parent 7deb8a3 commit ea6e256
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmt = { version = "0.3.5", optional = true }
tokio = { version = "1.34.0", default-features = false, optional = true }

[dev-dependencies]
embedded-hal-mock = { version = "0.10.0", default-features = false, features = [
embedded-hal-mock = { version = "0.11.1", default-features = false, features = [
"eh1",
"embedded-time",
"embedded-hal-async",
Expand All @@ -35,4 +35,4 @@ defmt = ["dep:defmt", "embassy-time/defmt"]
std = ["dep:tokio"]

[patch.crates-io]
embedded-hal-mock = { git = "https://github.com/avsaase/embedded-hal-mock/", rev = "bec7a531d1e91fa19ef43abfb4af629000b15e90" }
embedded-hal-mock = { git = "https://github.com/avsaase/embedded-hal-mock/", rev = "8754d222abc91c109ade0f003f276b58cf4c126d" }
4 changes: 3 additions & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use claims::{assert_matches, assert_none, assert_some_eq};
use embedded_hal_mock::eh1::pin::{Mock, State as PinState, Transaction, TransactionKind as Kind};
use embedded_hal_mock::eh1::digital::{
Mock, State as PinState, Transaction, TransactionKind as Kind,
};

use crate::{Button, ButtonConfig, ButtonEvent, Duration, Mode, State};

Expand Down

0 comments on commit ea6e256

Please sign in to comment.