diff options
| author | Frank Stevenson <[email protected]> | 2025-07-24 21:17:30 +0200 |
|---|---|---|
| committer | Frank Stevenson <[email protected]> | 2025-07-24 21:17:30 +0200 |
| commit | 0d1e34d0fcc1fb995f0da46eede063cfbd9c962e (patch) | |
| tree | 66a2aa49369c996ea2c327a7f242b560ae40d1f2 /embassy-stm32 | |
| parent | aa243e4d3e51719d32314ba47ea68674ecc6c95e (diff) | |
Minor cleanup
Diffstat (limited to 'embassy-stm32')
| -rw-r--r-- | embassy-stm32/src/rcc/u5.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rcc/u5.rs b/embassy-stm32/src/rcc/u5.rs index 7a7ffc939..06895a99a 100644 --- a/embassy-stm32/src/rcc/u5.rs +++ b/embassy-stm32/src/rcc/u5.rs | |||
| @@ -659,7 +659,7 @@ fn get_msi_calibration_fraction(range: Msirange) -> MsiFraction { | |||
| 659 | // Exploiting the MSIx internals to make calculations compact | 659 | // Exploiting the MSIx internals to make calculations compact |
| 660 | let denominator = (range as u32 & 0x03) + 1; | 660 | let denominator = (range as u32 & 0x03) + 1; |
| 661 | // Base multipliers are deduced from Table 82: MSI oscillator characteristics in data sheet | 661 | // Base multipliers are deduced from Table 82: MSI oscillator characteristics in data sheet |
| 662 | let numerator = [1465, 122, 94, 12][(range as u32 >> 2) as usize]; | 662 | let numerator = [1465, 122, 94, 12][range as usize >> 2]; |
| 663 | 663 | ||
| 664 | MsiFraction::new(numerator, denominator) | 664 | MsiFraction::new(numerator, denominator) |
| 665 | } | 665 | } |
