From 9f4abc46324fb3f43689df9bc85d172e6d4b7dd2 Mon Sep 17 00:00:00 2001 From: Sachymetsu Date: Tue, 9 Dec 2025 11:26:18 +0100 Subject: [PATCH] Remove redundant reset future --- src/shtc3.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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); } } -- 2.51.2