diff options
| author | xoviat <[email protected]> | 2023-08-27 15:23:25 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-08-27 15:23:25 -0500 |
| commit | f77a7fe4bf668647dda02ecfd9bb0aa857dea032 (patch) | |
| tree | d920e07f26165fc513098768731f6025ed9db1ee /embassy-stm32/src/rtc | |
| parent | cbc92dce052060bb15b82921c0a05c3a81d6dcc9 (diff) | |
| parent | db6f9afa2e4b1da47a655a59c4f09a60a3a87a50 (diff) | |
Merge branch 'main' of https://github.com/aidant/embassy into rtc
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 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 | ||
