Skip to content

Commit

Permalink
Merge pull request #818 from hfly0/feat/rtc_error_defmt_impl
Browse files Browse the repository at this point in the history
Derive `defmt::Format` for `RtcError`, fix doc typo
  • Loading branch information
thejpster authored Jul 20, 2024
2 parents 1d2d354 + fa584e6 commit fc72c25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rp2040-hal/src/rtc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ impl RealTimeClock {
}
}

/// Errors that can occur on methods on [RtcClock]
/// Errors that can occur on methods on [RealTimeClock]
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum RtcError {
/// An invalid DateTime was given or stored on the hardware.
InvalidDateTime(DateTimeError),
Expand Down

0 comments on commit fc72c25

Please sign in to comment.