From e9fa79bd779a505b430ad6482d18af344f992e7e Mon Sep 17 00:00:00 2001 From: Mathias Date: Mon, 4 Dec 2023 14:19:30 +0100 Subject: [PATCH] Revert "fix day of the week conversion" This reverts commit 59a5e84df584faed5676de027601d09772be55f7. --- embassy-stm32/src/rtc/datetime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/rtc/datetime.rs b/embassy-stm32/src/rtc/datetime.rs index f3428108..f4e86dd8 100644 --- a/embassy-stm32/src/rtc/datetime.rs +++ b/embassy-stm32/src/rtc/datetime.rs @@ -211,7 +211,7 @@ pub enum DayOfWeek { #[cfg(feature = "chrono")] impl From for DayOfWeek { fn from(weekday: Weekday) -> Self { - day_of_week_from_u8(weekday.num_days_from_monday() as u8).unwrap() + day_of_week_from_u8(weekday.number_from_monday() as u8).unwrap() } }