Skip to content

Commit 985e99a

Browse files
committed
DelayUs -> DelayNs
1 parent ff01f7e commit 985e99a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmt = { version = "0.3.2", optional = true }
2626
embedded-hal = "0.2.7"
2727
fixed = "1.20.0"
2828
sensirion-i2c = "0.2"
29-
embedded-hal-async = { version = "1.0.0-rc.1", optional = true }
29+
embedded-hal-async = { version = "1.0.0-rc.3", optional = true }
3030

3131
[features]
3232
default = ["blocking"]

src/sht4x.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use embedded_hal::blocking::{
1111
};
1212
#[cfg(feature = "async")]
1313
use embedded_hal_async::{
14-
delay::DelayUs,
14+
delay::DelayNs,
1515
i2c::{I2c, SevenBitAddress},
1616
};
1717
#[cfg(feature = "blocking")]
@@ -200,7 +200,7 @@ where
200200
impl<I, D, E> Sht4x<I, D>
201201
where
202202
I: I2c<SevenBitAddress, Error = E>,
203-
D: DelayUs,
203+
D: DelayNs,
204204
{
205205
/// Creates a new driver instance using the given I2C bus. It configures the default I2C
206206
/// address 0x44 used by most family members.

0 commit comments

Comments
 (0)