Firmware for the b-parasite board, but in Rust!

Remove redundant reset future

Changed files
+1 -10
src
+1 -10
src/shtc3.rs
···
Ok(m)
}
-
async fn reset<I>(sht: &mut ShtC3<I>) -> Result<(), ShtError<I::Error>>
-
where
-
I: I2c<SevenBitAddress>,
-
{
-
sht.reset_async(&mut Delay).await?;
-
-
Ok(())
-
}
-
fn init_sht3<'scope>(
spio: Peri<'scope, peripherals::TWISPI0>,
sda: Peri<'scope, peripherals::P0_24>,
···
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);
}
}