Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hauju committed Dec 21, 2023
1 parent 17f9740 commit 9b015f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ util = [ "structopt", "simplelog", "humantime", "linux-embedded-hal", "anyhow" ]
default = [ "util" ]

[dependencies]
sensirion-i2c = "0.1"
sensirion-i2c = "0.2"
embedded-hal = "0.2"

log = { version = "0.4.16", default_features = false }
Expand All @@ -33,7 +33,7 @@ humantime = { version = "2.1.0", optional = true }

[dev-dependencies]
linux-embedded-hal = "0.3"
embedded-hal-mock = "0.8"
embedded-hal-mock = "0.9"

[[bin]]
name = "scd4x-util"
Expand Down
2 changes: 1 addition & 1 deletion src/scd4x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ where
if !allowed_if_running && self.is_running {
return Err(Error::NotAllowed);
}
i2c::write_command(&mut self.i2c, SCD4X_I2C_ADDRESS, command).map_err(Error::I2c)?;
i2c::write_command_u16(&mut self.i2c, SCD4X_I2C_ADDRESS, command).map_err(Error::I2c)?;
self.delay.delay_ms(delay);
Ok(())
}
Expand Down

0 comments on commit 9b015f0

Please sign in to comment.