From 3f000a22f5ce26f3898a484ece143bc908b92711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Sat, 23 Nov 2024 12:13:23 -0300 Subject: [PATCH] test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/ads1115.rs | 2 +- src/icm20689.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ads1115.rs b/src/ads1115.rs index b1de9f5743..74badc05bd 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 9990476f3f..d9770cb02f 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)?;