Skip to content

Commit

Permalink
Update for embedded-hal 1.0.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kelnos committed Nov 5, 2023
1 parent dbf5b36 commit 20f511f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ default = []
std = []

[dependencies]
embedded-hal = "=1.0.0-alpha.8"
embedded-hal = "=1.0.0-rc.1"
embedded-hal-nb = "=1.0.0-rc.1"

[dev-dependencies]
anyhow = "1"
Expand Down
2 changes: 1 addition & 1 deletion src/i2c.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{read::*, AirQualitySensor, Reading, SensorError};
use embedded_hal::i2c::{blocking::I2c, AddressMode, Error as I2cError};
use embedded_hal::i2c::{I2c, AddressMode, Error as I2cError};

/// A SEN0177 device connected via I2C
pub struct Sen0177<A, I2C, E>
Expand Down
4 changes: 2 additions & 2 deletions src/serial.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{read::*, AirQualitySensor, Reading, SensorError};
use embedded_hal::{
use embedded_hal_nb::{
nb::block,
serial::{nb::Read, Error as SerialError},
serial::{Read, Error as SerialError},
};

/// A SEN0177 device connected via serial UART
Expand Down

0 comments on commit 20f511f

Please sign in to comment.