Skip to content

Commit

Permalink
update to latest release candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide committed Jan 8, 2024
1 parent 729d2b7 commit 2e5b339
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ keywords = ["tb6612fng", "driver", "motor", "controller", "embedded-hal-driver"]
license = "MIT OR Apache-2.0"

[dependencies]
embedded-hal = "=1.0.0-rc.1"
embedded-hal = "=1.0.0-rc.3"

defmt = { version = "0.3", optional = true }
defmt = { version = "0.3.5", optional = true }

[dev-dependencies]
embedded-hal-mock = { version = "=0.10.0-rc.2", features = ["eh1"] }
embedded-hal-mock = { version = "=0.10.0-rc.4", features = ["eh1"] }
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ where
/// Returns whether the standby mode is enabled.
///
/// *NOTE* this does *not* read the electrical state of the pin, see [`StatefulOutputPin`]
pub fn current_standby(&self) -> bool
pub fn current_standby(&mut self) -> bool
where
STBY: StatefulOutputPin,
{
Expand Down Expand Up @@ -309,7 +309,7 @@ mod tests {
let motor_in1_expectations = [PinTransaction::set(Low)];
let motor_in2_expectations = [PinTransaction::set(Low)];
let motor_pwm_expectations = [
PwmTransaction::get_max_duty_cycle(max_duty),
PwmTransaction::max_duty_cycle(max_duty),
PwmTransaction::set_duty_cycle(0),
];
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
Expand All @@ -334,7 +334,7 @@ mod tests {
let motor_in1_expectations = [PinTransaction::set(High)];
let motor_in2_expectations = [PinTransaction::set(High)];
let motor_pwm_expectations = [
PwmTransaction::get_max_duty_cycle(max_duty),
PwmTransaction::max_duty_cycle(max_duty),
PwmTransaction::set_duty_cycle(0),
];
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
Expand All @@ -360,7 +360,7 @@ mod tests {
let motor_in1_expectations = [PinTransaction::set(High)];
let motor_in2_expectations = [PinTransaction::set(Low)];
let motor_pwm_expectations = [
PwmTransaction::get_max_duty_cycle(max_duty),
PwmTransaction::max_duty_cycle(max_duty),
PwmTransaction::set_duty_cycle(speed as u16),
];
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
Expand All @@ -386,7 +386,7 @@ mod tests {
let motor_in1_expectations = [PinTransaction::set(Low)];
let motor_in2_expectations = [PinTransaction::set(High)];
let motor_pwm_expectations = [
PwmTransaction::get_max_duty_cycle(max_duty),
PwmTransaction::max_duty_cycle(max_duty),
PwmTransaction::set_duty_cycle(speed as u16),
];
let mut motor_in1 = PinMock::new(&motor_in1_expectations);
Expand Down

0 comments on commit 2e5b339

Please sign in to comment.