AP_Notify: enable/disable buzzer in Linux based boards

This commit is contained in:
pepevalbe 2016-03-31 20:20:14 +02:00 committed by Randy Mackay
parent c00cbcf076
commit abb667fac3
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,11 @@ void ToneAlarm_Linux::update()
return;
}
// exit if buzzer is not enabled
if (pNotify->buzzer_enabled() == false) {
return;
}
// check for arming failure
if (AP_Notify::events.arming_failed) {
play_tune(TONE_ARMING_FAILURE_TUNE);