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

Remove redundant reset future

Changed files
+1 -10
src
+1 -10
src/shtc3.rs
··· 43 Ok(m) 44 } 45 46 - async fn reset<I>(sht: &mut ShtC3<I>) -> Result<(), ShtError<I::Error>> 47 - where 48 - I: I2c<SevenBitAddress>, 49 - { 50 - sht.reset_async(&mut Delay).await?; 51 - 52 - Ok(()) 53 - } 54 - 55 fn init_sht3<'scope>( 56 spio: Peri<'scope, peripherals::TWISPI0>, 57 sda: Peri<'scope, peripherals::P0_24>, ··· 88 error!("SHTC3 error: {:?}", e); 89 90 // Attempt to reset the sensor 91 - if let Err(e) = reset(&mut sht).await { 92 error!("SHTC3 reset error: {:?}", e); 93 } 94 }
··· 43 Ok(m) 44 } 45 46 fn init_sht3<'scope>( 47 spio: Peri<'scope, peripherals::TWISPI0>, 48 sda: Peri<'scope, peripherals::P0_24>, ··· 79 error!("SHTC3 error: {:?}", e); 80 81 // Attempt to reset the sensor 82 + if let Err(e) = sht.reset_async(&mut Delay).await { 83 error!("SHTC3 reset error: {:?}", e); 84 } 85 }