aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rtc/mod.rs
diff options
context:
space:
mode:
authorGeorges Palauqui <[email protected]>2025-01-24 11:58:33 +0100
committerGeorges Palauqui <[email protected]>2025-01-24 11:58:33 +0100
commitda0f6dbe08bb574c5c2bc448199dc2e4f74692de (patch)
treedab46aac37f54ff2ce804a28e3a9d81680238236 /embassy-stm32/src/rtc/mod.rs
parent4e3d066251578b33d3cb0b8e3d2e44875a001ee5 (diff)
derive defmt::Format on pub struct/enum of stm32::rtc
Diffstat (limited to 'embassy-stm32/src/rtc/mod.rs')
-rw-r--r--embassy-stm32/src/rtc/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-stm32/src/rtc/mod.rs b/embassy-stm32/src/rtc/mod.rs
index 1a668cb37..66646de4c 100644
--- a/embassy-stm32/src/rtc/mod.rs
+++ b/embassy-stm32/src/rtc/mod.rs
@@ -36,6 +36,7 @@ use crate::peripherals::RTC;
36/// Errors that can occur on methods on [RtcClock] 36/// Errors that can occur on methods on [RtcClock]
37#[non_exhaustive] 37#[non_exhaustive]
38#[derive(Clone, Debug, PartialEq, Eq)] 38#[derive(Clone, Debug, PartialEq, Eq)]
39#[cfg_attr(feature = "defmt", derive(defmt::Format))]
39pub enum RtcError { 40pub enum RtcError {
40 /// An invalid DateTime was given or stored on the hardware. 41 /// An invalid DateTime was given or stored on the hardware.
41 InvalidDateTime(DateTimeError), 42 InvalidDateTime(DateTimeError),