diff options
| author | Mathias <[email protected]> | 2023-12-04 14:19:30 +0100 |
|---|---|---|
| committer | Mathias <[email protected]> | 2023-12-04 14:19:30 +0100 |
| commit | e9fa79bd779a505b430ad6482d18af344f992e7e (patch) | |
| tree | 17527f8b4a05195cfdd888df0c6c3047fc1bc764 /embassy-stm32/src/rtc | |
| parent | b867f9b5b6e55f8312e39dd2f4782e6f91e47951 (diff) | |
Revert "fix day of the week conversion"
This reverts commit 59a5e84df584faed5676de027601d09772be55f7.
Diffstat (limited to 'embassy-stm32/src/rtc')
| -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 f3428108c..f4e86dd87 100644 --- a/embassy-stm32/src/rtc/datetime.rs +++ b/embassy-stm32/src/rtc/datetime.rs | |||
| @@ -211,7 +211,7 @@ pub enum DayOfWeek { | |||
| 211 | #[cfg(feature = "chrono")] | 211 | #[cfg(feature = "chrono")] |
| 212 | impl From<chrono::Weekday> for DayOfWeek { | 212 | impl From<chrono::Weekday> for DayOfWeek { |
| 213 | fn from(weekday: Weekday) -> Self { | 213 | fn from(weekday: Weekday) -> Self { |
| 214 | day_of_week_from_u8(weekday.num_days_from_monday() as u8).unwrap() | 214 | day_of_week_from_u8(weekday.number_from_monday() as u8).unwrap() |
| 215 | } | 215 | } |
| 216 | } | 216 | } |
| 217 | 217 | ||
