From b083848ae71f9f79aa2b41a851517d15b2d5c844 Mon Sep 17 00:00:00 2001 From: Michel Pastor Date: Tue, 25 May 2021 23:13:25 +0200 Subject: [PATCH] AP_HAL_ChibiOS: fix comments --- libraries/AP_HAL_ChibiOS/Util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/Util.cpp b/libraries/AP_HAL_ChibiOS/Util.cpp index 7030ab37eb..a6c8e58d70 100644 --- a/libraries/AP_HAL_ChibiOS/Util.cpp +++ b/libraries/AP_HAL_ChibiOS/Util.cpp @@ -179,7 +179,7 @@ void Util::toneAlarm_set_buzzer_tone(float frequency, float volume, uint32_t dur pwmEnableChannel(_toneAlarm_pwm_group.pwm_drv, _toneAlarm_pwm_group.chan, roundf(volume*_toneAlarm_pwm_group.pwm_cfg.frequency/frequency)/2); } -#endif +#endif // HAL_PWM_ALARM #if HAL_DSHOT_ALARM // don't play the motors while flying if (!(_toneAlarm_types & ALARM_DSHOT) || get_soft_armed() || hal.rcout->get_dshot_esc_type() != RCOutput::DSHOT_ESC_BLHELI) { @@ -199,7 +199,7 @@ void Util::toneAlarm_set_buzzer_tone(float frequency, float volume, uint32_t dur } else { // G+ hal.rcout->send_dshot_command(RCOutput::DSHOT_BEEP5, RCOutput::ALL_CHANNELS, duration_ms); } -#endif // HAL_PWM_ALARM +#endif // HAL_DSHOT_ALARM } #endif