Merge pull request #2249 from MathiasKoch/embassy-stm32/revert-day-of-week-fix

fix(embassy-stm32): Revert "fix day of the week conversion"
This commit is contained in:
Dario Nieuwenhuis 2023-12-04 13:35:27 +00:00 committed by GitHub
commit 5f7cd821b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,7 @@ pub enum DayOfWeek {
#[cfg(feature = "chrono")] #[cfg(feature = "chrono")]
impl From<chrono::Weekday> for DayOfWeek { impl From<chrono::Weekday> for DayOfWeek {
fn from(weekday: Weekday) -> Self { 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()
} }
} }