From fa584e6010d5b6315bbda72892fe0507fd005323 Mon Sep 17 00:00:00 2001 From: hfly0 Date: Mon, 15 Jul 2024 18:14:56 +1000 Subject: [PATCH] Derive `defmt::Format` for `RtcError`, fix doc typo --- rp2040-hal/src/rtc/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rp2040-hal/src/rtc/mod.rs b/rp2040-hal/src/rtc/mod.rs index 6c4e52d16..35d34fda5 100644 --- a/rp2040-hal/src/rtc/mod.rs +++ b/rp2040-hal/src/rtc/mod.rs @@ -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),