Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Nov 23, 2024
1 parent ebe7ad7 commit 3f000a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ads1115.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) => {
Expand Down
2 changes: 1 addition & 1 deletion src/icm20689.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 3f000a2

Please sign in to comment.