diff --git a/Cargo.toml b/Cargo.toml index 398a765..397b82f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ defmt = { version = "0.3", optional = true } embedded-hal = { version = "1.0", optional = true } embedded-hal-async = { version = "1.0", optional = true } log = { version = "0.4", optional = true } -maybe-async-cfg = "0.2" +maybe-async-cfg2 = "0.3" [features] async = ["dep:embedded-hal-async"] diff --git a/src/lib.rs b/src/lib.rs index 1a5dbf8..d0e5823 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -131,7 +131,7 @@ impl From for Status { } /// A DS4432 Digital To Analog (DAC) converter on the I2C bus `I`. -#[maybe_async_cfg::maybe( +#[maybe_async_cfg2::maybe( sync(feature = "sync", self = "DS4432"), async(feature = "async", keep_self) )] @@ -141,7 +141,7 @@ pub struct AsyncDS4432 { rfs1_ohm: Option, } -#[maybe_async_cfg::maybe( +#[maybe_async_cfg2::maybe( sync( feature = "sync", self = "DS4432",