AP_Periph: use AP_Notify enum for ToneAlarm types

This commit is contained in:
bugobliterator 2021-05-26 21:50:52 +05:30 committed by Andrew Tridgell
parent ea1795d6fe
commit 3390167753

View File

@ -477,7 +477,7 @@ static void handle_beep_command(CanardInstance* ins, CanardRxTransfer* transfer)
if (!initialised) {
initialised = true;
hal.rcout->init();
hal.util->toneAlarm_init(AP_HAL::Util::ALARM_BUZZER);
hal.util->toneAlarm_init(AP_Notify::Notify_Buzz_Builtin);
}
fix_float16(req.frequency);
fix_float16(req.duration);