diff options
Diffstat (limited to 'embassy-mcxa/src/clocks/periph_helpers.rs')
| -rw-r--r-- | embassy-mcxa/src/clocks/periph_helpers.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/embassy-mcxa/src/clocks/periph_helpers.rs b/embassy-mcxa/src/clocks/periph_helpers.rs index fed5e558e..1ea7a99ed 100644 --- a/embassy-mcxa/src/clocks/periph_helpers.rs +++ b/embassy-mcxa/src/clocks/periph_helpers.rs | |||
| @@ -108,7 +108,11 @@ impl Div4 { | |||
| 108 | /// by 1, and `Div4::from_raw(15)` will divide the source by | 108 | /// by 1, and `Div4::from_raw(15)` will divide the source by |
| 109 | /// 16. | 109 | /// 16. |
| 110 | pub const fn from_raw(n: u8) -> Option<Self> { | 110 | pub const fn from_raw(n: u8) -> Option<Self> { |
| 111 | if n > 0b1111 { None } else { Some(Self(n)) } | 111 | if n > 0b1111 { |
| 112 | None | ||
| 113 | } else { | ||
| 114 | Some(Self(n)) | ||
| 115 | } | ||
| 112 | } | 116 | } |
| 113 | 117 | ||
| 114 | /// Store a specific divisor value that will divide the source | 118 | /// Store a specific divisor value that will divide the source |
