diff --git a/src/ads1115.rs b/src/ads1115.rs index b1de9f574..74badc05b 100644 --- a/src/ads1115.rs +++ b/src/ads1115.rs @@ -133,7 +133,7 @@ impl AdcSensor for Ads1115Device { } Err(nb::Error::WouldBlock) => { // TODO: configure this - std::thread::sleep(std::time::Duration::from_millis(1)); + std::thread::sleep(std::time::Duration::from_micros(10)); continue; } Err(nb::Error::Other(error)) => { diff --git a/src/icm20689.rs b/src/icm20689.rs index 9990476f3..d9770cb02 100644 --- a/src/icm20689.rs +++ b/src/icm20689.rs @@ -93,7 +93,7 @@ impl Icm20689Builder { let mut spi = Spidev::open(self.spi_device)?; let options = SpidevOptions::new() .bits_per_word(8) - .max_speed_hz(1_000_000) + .max_speed_hz(10_000_000) .mode(SpiModeFlags::SPI_MODE_0) .build(); spi.configure(&options)?;