1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

White space tidy & add braces

This commit is contained in:
jflyper 2018-04-24 07:43:59 +09:00
parent 22a7788fa3
commit e87d14fe46

View file

@ -469,8 +469,10 @@ void servoDevInit(const servoDevConfig_t *servoConfig)
#ifdef USE_BEEPER #ifdef USE_BEEPER
void pwmWriteBeeper(bool onoffBeep) void pwmWriteBeeper(bool onoffBeep)
{ {
if (!beeperPwm.io) if (!beeperPwm.io) {
return; return;
}
if (onoffBeep == true) { if (onoffBeep == true) {
*beeperPwm.channel.ccr = (PWM_TIMER_1MHZ / freqBeep) / 2; *beeperPwm.channel.ccr = (PWM_TIMER_1MHZ / freqBeep) / 2;
beeperPwm.enabled = true; beeperPwm.enabled = true;