diff options
| author | aidant <[email protected]> | 2023-08-27 18:36:35 +1000 |
|---|---|---|
| committer | aidant <[email protected]> | 2023-08-27 18:36:35 +1000 |
| commit | 59a5e84df584faed5676de027601d09772be55f7 (patch) | |
| tree | 5542d660c31713a039735eb9efdf63a57c56ca31 /embassy-stm32/src/rtc/datetime.rs | |
| parent | 13f050167346ce262ea33c0757496b832c90fa58 (diff) | |
fix day of the week conversion
Diffstat (limited to 'embassy-stm32/src/rtc/datetime.rs')
| -rw-r--r-- | embassy-stm32/src/rtc/datetime.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rtc/datetime.rs b/embassy-stm32/src/rtc/datetime.rs index a9c48d88d..3efe9be5d 100644 --- a/embassy-stm32/src/rtc/datetime.rs +++ b/embassy-stm32/src/rtc/datetime.rs | |||
| @@ -89,7 +89,7 @@ pub enum DayOfWeek { | |||
| 89 | #[cfg(feature = "chrono")] | 89 | #[cfg(feature = "chrono")] |
| 90 | impl From<chrono::Weekday> for DayOfWeek { | 90 | impl From<chrono::Weekday> for DayOfWeek { |
| 91 | fn from(weekday: Weekday) -> Self { | 91 | fn from(weekday: Weekday) -> Self { |
| 92 | day_of_week_from_u8(weekday.number_from_monday() as u8).unwrap() | 92 | day_of_week_from_u8(weekday.num_days_from_monday() as u8).unwrap() |
| 93 | } | 93 | } |
| 94 | } | 94 | } |
| 95 | 95 | ||
