mirror of https://github.com/ARMmbed/mbed-os.git
Added curly brackets for the single line if else statement.
parent
5ea792cc9a
commit
6f9a54777d
|
@ -189,10 +189,11 @@ void set_clock_gating(peripheral_clk_t eClk, int enable)
|
|||
}
|
||||
|
||||
// if enable, set the bit otherwise clear the bit
|
||||
if (enable)
|
||||
if (enable) {
|
||||
pADI_CLKG0_CLK->CTL5 |= flag;
|
||||
else
|
||||
} else {
|
||||
pADI_CLKG0_CLK->CTL5 &= (~flag);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue