Skip to content

Commit 6f9a547

Browse files
committed
Added curly brackets for the single line if else statement.
1 parent 5ea792c commit 6f9a547

File tree

1 file changed

+3
-2
lines changed
  • targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api

1 file changed

+3
-2
lines changed

targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/sleep.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,11 @@ void set_clock_gating(peripheral_clk_t eClk, int enable)
189189
}
190190

191191
// if enable, set the bit otherwise clear the bit
192-
if (enable)
192+
if (enable) {
193193
pADI_CLKG0_CLK->CTL5 |= flag;
194-
else
194+
} else {
195195
pADI_CLKG0_CLK->CTL5 &= (~flag);
196+
}
196197
}
197198

198199

0 commit comments

Comments
 (0)