Browse Source

AP_Notify: enable/disable buzzer in Linux based boards

master
pepevalbe 9 years ago committed by Randy Mackay
parent
commit
abb667fac3
  1. 5
      libraries/AP_Notify/ToneAlarm_Linux.cpp

5
libraries/AP_Notify/ToneAlarm_Linux.cpp

@ -66,6 +66,11 @@ void ToneAlarm_Linux::update() @@ -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);

Loading…
Cancel
Save