Skip to content

Commit

Permalink
DelayUs -> DelayNs
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Jan 1, 2024
1 parent ff01f7e commit 985e99a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmt = { version = "0.3.2", optional = true }
embedded-hal = "0.2.7"
fixed = "1.20.0"
sensirion-i2c = "0.2"
embedded-hal-async = { version = "1.0.0-rc.1", optional = true }
embedded-hal-async = { version = "1.0.0-rc.3", optional = true }

[features]
default = ["blocking"]
Expand Down
4 changes: 2 additions & 2 deletions src/sht4x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use embedded_hal::blocking::{
};
#[cfg(feature = "async")]
use embedded_hal_async::{
delay::DelayUs,
delay::DelayNs,
i2c::{I2c, SevenBitAddress},
};
#[cfg(feature = "blocking")]
Expand Down Expand Up @@ -200,7 +200,7 @@ where
impl<I, D, E> Sht4x<I, D>
where
I: I2c<SevenBitAddress, Error = E>,
D: DelayUs,
D: DelayNs,
{
/// Creates a new driver instance using the given I2C bus. It configures the default I2C
/// address 0x44 used by most family members.
Expand Down

0 comments on commit 985e99a

Please sign in to comment.