Skip to content

Commit 04b4f18

Browse files
authored
Merge pull request #568 from reitermarkus/reexport-digital
Re-export `digital` error types in `embedded-hal-async`.
2 parents d90b59b + db179e9 commit 04b4f18

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

embedded-hal-async/src/digital.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
//! .expect("failed to await input pin")
1616
//! }
1717
//! ```
18+
pub use embedded_hal::digital::{Error, ErrorKind, ErrorType};
1819

1920
/// Asynchronously wait for GPIO pin state.
20-
pub trait Wait: embedded_hal::digital::ErrorType {
21+
pub trait Wait: ErrorType {
2122
/// Wait until the pin is high. If it is already high, return immediately.
2223
///
2324
/// # Note for implementers

embedded-hal-async/src/i2c.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
//! Since 7-bit addressing is the mode of the majority of I2C devices,
1717
//! `SevenBitAddress` has been set as default mode and thus can be omitted if desired.
1818
19-
pub use embedded_hal::i2c::Operation;
2019
pub use embedded_hal::i2c::{
21-
AddressMode, Error, ErrorKind, ErrorType, NoAcknowledgeSource, SevenBitAddress, TenBitAddress,
20+
AddressMode, Error, ErrorKind, ErrorType, NoAcknowledgeSource, Operation, SevenBitAddress,
21+
TenBitAddress,
2222
};
2323

2424
/// Async I2c.

0 commit comments

Comments
 (0)