mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-08 10:38:44 +08:00
HAL_ChibiOS: added duration to toneAlarm_set_buzzer_tone
This commit is contained in:
1 parent
949324ff2b
commit
c83567dcba
2 files changed
+3
-2
No files matched your search
@@ -153,7 +153,8 @@ bool Util::toneAlarm_init()
|
||||
return true;
|
||||
}
|
||||
|
||||
void Util::toneAlarm_set_buzzer_tone(float frequency, float volume) {
|
||||
void Util::toneAlarm_set_buzzer_tone(float frequency, float volume, uint32_t duration_ms)
|
||||
{
|
||||
if (is_zero(frequency) || is_zero(volume)) {
|
||||
pwmDisableChannel(_toneAlarm_pwm_group.pwm_drv, _toneAlarm_pwm_group.chan);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user