removes unecessary braces
This commit is contained in:
parent
2dcbe75cca
commit
c37f86ff1c
@ -148,10 +148,8 @@ pub(crate) unsafe fn init(config: Config) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(pllmul_bits) = pllmul_bits {
|
if let Some(pllmul_bits) = pllmul_bits {
|
||||||
{
|
let pllctpre_flag: u8 = if config.pllxtpre { 1 } else { 0 };
|
||||||
let pllctpre_flag: u8 = if config.pllxtpre { 1 } else { 0 };
|
RCC.cfgr().modify(|w| w.set_pllxtpre(Pllxtpre(pllctpre_flag)));
|
||||||
RCC.cfgr().modify(|w| w.set_pllxtpre(Pllxtpre(pllctpre_flag)));
|
|
||||||
}
|
|
||||||
|
|
||||||
// enable PLL and wait for it to be ready
|
// enable PLL and wait for it to be ready
|
||||||
RCC.cfgr().modify(|w| {
|
RCC.cfgr().modify(|w| {
|
||||||
|
Loading…
Reference in New Issue
Block a user