From 985e99a0aa6beec41e6d924e5b84b4b4b518bdbd Mon Sep 17 00:00:00 2001 From: Niko Date: Mon, 1 Jan 2024 16:38:54 -0700 Subject: [PATCH] DelayUs -> DelayNs --- Cargo.toml | 2 +- src/sht4x.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index db8d3be..de949e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/src/sht4x.rs b/src/sht4x.rs index 9f8f248..476e467 100644 --- a/src/sht4x.rs +++ b/src/sht4x.rs @@ -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")] @@ -200,7 +200,7 @@ where impl Sht4x where I: I2c, - 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.