Skip to content

Commit

Permalink
rtc: fix a documentation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM authored May 23, 2022
1 parent 997ecfe commit a9d4b5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added `Rtc::calibrate_lp` to calibrate the RTC.
- Added `Rtc::recalibration_pending`.

### Fixed
- Fixed a documentation bug in `rtc::Alarm`. Values are masked if `true`, but the documentation indicated they are masked if `false`.

## [0.5.1] - 2022-05-14
### Added
- Added `Rtc::alarm_{a,b}` to get the alarm value.
Expand Down
16 changes: 8 additions & 8 deletions hal/src/rtc/alarm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ impl Alarm {

/// Set the alarm seconds mask.
///
/// * `true`: Alarm is set if the seconds match.
/// * `false`: Seconds are "do not care" in the alarm comparison.
/// * `false`: Alarm is set if the seconds match.
/// * `true`: Seconds are "do not care" in the alarm comparison.
///
/// # Example
///
Expand Down Expand Up @@ -209,8 +209,8 @@ impl Alarm {

/// Set the alarm minutes mask.
///
/// * `true`: Alarm is set if the minutes match.
/// * `false`: Minutes are "do not care" in the alarm comparison.
/// * `false`: Alarm is set if the minutes match.
/// * `true`: Minutes are "do not care" in the alarm comparison.
///
/// # Example
///
Expand Down Expand Up @@ -282,8 +282,8 @@ impl Alarm {

/// Set the alarm hours mask.
///
/// * `true`: Alarm is set if the hours match.
/// * `false`: Hours are "do not care" in the alarm comparison.
/// * `false`: Alarm is set if the hours match.
/// * `true`: Hours are "do not care" in the alarm comparison.
///
/// # Example
///
Expand Down Expand Up @@ -408,8 +408,8 @@ impl Alarm {

/// Set the alarm day / weekday mask.
///
/// * `true`: Alarm is set if the days / weekdays match.
/// * `false`: Days / weekdays are "do not care" in the alarm comparison.
/// * `false`: Alarm is set if the days / weekdays match.
/// * `true`: Days / weekdays are "do not care" in the alarm comparison.
///
/// # Example
///
Expand Down

0 comments on commit a9d4b5a

Please sign in to comment.