diff --git a/src/shtc3.rs b/src/shtc3.rs index 9a1233c..1a71699 100644 --- a/src/shtc3.rs +++ b/src/shtc3.rs @@ -43,15 +43,6 @@ where Ok(m) } -async fn reset(sht: &mut ShtC3) -> Result<(), ShtError> -where - I: I2c, -{ - sht.reset_async(&mut Delay).await?; - - Ok(()) -} - fn init_sht3<'scope>( spio: Peri<'scope, peripherals::TWISPI0>, sda: Peri<'scope, peripherals::P0_24>, @@ -88,7 +79,7 @@ pub async fn task( error!("SHTC3 error: {:?}", e); // Attempt to reset the sensor - if let Err(e) = reset(&mut sht).await { + if let Err(e) = sht.reset_async(&mut Delay).await { error!("SHTC3 reset error: {:?}", e); } }