Skip to content

Commit

Permalink
Merge pull request #568 from reitermarkus/reexport-digital
Browse files Browse the repository at this point in the history
Re-export `digital` error types in `embedded-hal-async`.
  • Loading branch information
Dirbaio authored Jan 19, 2024
2 parents d90b59b + db179e9 commit 04b4f18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion embedded-hal-async/src/digital.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
//! .expect("failed to await input pin")
//! }
//! ```
pub use embedded_hal::digital::{Error, ErrorKind, ErrorType};

/// Asynchronously wait for GPIO pin state.
pub trait Wait: embedded_hal::digital::ErrorType {
pub trait Wait: ErrorType {
/// Wait until the pin is high. If it is already high, return immediately.
///
/// # Note for implementers
Expand Down
4 changes: 2 additions & 2 deletions embedded-hal-async/src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
//! Since 7-bit addressing is the mode of the majority of I2C devices,
//! `SevenBitAddress` has been set as default mode and thus can be omitted if desired.
pub use embedded_hal::i2c::Operation;
pub use embedded_hal::i2c::{
AddressMode, Error, ErrorKind, ErrorType, NoAcknowledgeSource, SevenBitAddress, TenBitAddress,
AddressMode, Error, ErrorKind, ErrorType, NoAcknowledgeSource, Operation, SevenBitAddress,
TenBitAddress,
};

/// Async I2c.
Expand Down

0 comments on commit 04b4f18

Please sign in to comment.