mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 04:40:39 +00:00
Minor cleanup
This commit is contained in:
parent
aa243e4d3e
commit
0d1e34d0fc
@ -659,7 +659,7 @@ fn get_msi_calibration_fraction(range: Msirange) -> MsiFraction {
|
||||
// Exploiting the MSIx internals to make calculations compact
|
||||
let denominator = (range as u32 & 0x03) + 1;
|
||||
// Base multipliers are deduced from Table 82: MSI oscillator characteristics in data sheet
|
||||
let numerator = [1465, 122, 94, 12][(range as u32 >> 2) as usize];
|
||||
let numerator = [1465, 122, 94, 12][range as usize >> 2];
|
||||
|
||||
MsiFraction::new(numerator, denominator)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user