mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
White space tidy & add braces
This commit is contained in:
parent
22a7788fa3
commit
e87d14fe46
1 changed files with 24 additions and 22 deletions
|
@ -469,8 +469,10 @@ void servoDevInit(const servoDevConfig_t *servoConfig)
|
|||
#ifdef USE_BEEPER
|
||||
void pwmWriteBeeper(bool onoffBeep)
|
||||
{
|
||||
if (!beeperPwm.io)
|
||||
if (!beeperPwm.io) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (onoffBeep == true) {
|
||||
*beeperPwm.channel.ccr = (PWM_TIMER_1MHZ / freqBeep) / 2;
|
||||
beeperPwm.enabled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue