AP_Notify: enable/disable buzzer in PX4 based boards

This commit is contained in:
pepevalbe 2016-03-31 20:19:52 +02:00 committed by Randy Mackay
parent c9862b1502
commit c00cbcf076

View File

@ -134,6 +134,11 @@ void ToneAlarm_PX4::update()
return;
}
// exit if buzzer is not enabled
if (pNotify->buzzer_enabled() == false) {
return;
}
check_cont_tone();
if (AP_Notify::flags.compass_cal_running != flags.compass_cal_running) {