Skip to content

Commit d04a2ed

Browse files
Merge #390
390: fix inverted logic in docs r=eldruin a=spookyvision Co-authored-by: Anatol Ulrich <[email protected]>
2 parents 43cc9b9 + ce7b1b6 commit d04a2ed

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Added
1111
- Implement `PartialOrd`, `Ord`, `Hash` for `can::StandardId`, `can::ExtendedId` and `can::Id` according to CAN bus arbitration rules
1212

13+
### Fixed
14+
- Fixed documentation for `wait_for_rising_edge`.
15+
1316
## [v1.0.0-alpha.8] - 2022-04-15
1417

1518
*** This is (also) an alpha release with breaking changes (sorry) ***

embedded-hal-async/src/digital.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ pub trait Wait: embedded_hal::digital::ErrorType {
5151

5252
/// Wait for the pin to undergo a transition from low to high.
5353
///
54-
/// If the pin is already low, this does *not* return immediately, it'll wait for the
55-
/// pin to go high and then low again.
54+
/// If the pin is already high, this does *not* return immediately, it'll wait for the
55+
/// pin to go low and then high again.
5656
fn wait_for_rising_edge<'a>(&'a mut self) -> Self::WaitForRisingEdgeFuture<'a>;
5757

5858
/// The future returned from `wait_for_falling_edge`.

0 commit comments

Comments
 (0)