From 1a2d940330db0021148d795bc1ffd470c0c6b409 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 19 Jun 2024 14:00:08 +1000 Subject: [PATCH] AP_Periph: rename Notify buzzertype enumeration --- Tools/AP_Periph/buzzer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/AP_Periph/buzzer.cpp b/Tools/AP_Periph/buzzer.cpp index c5285e3612..a683f2e0b4 100644 --- a/Tools/AP_Periph/buzzer.cpp +++ b/Tools/AP_Periph/buzzer.cpp @@ -26,7 +26,8 @@ void AP_Periph_FW::handle_beep_command(CanardInstance* canard_instance, CanardRx if (!initialised) { initialised = true; hal.rcout->init(); - hal.util->toneAlarm_init(AP_Notify::Notify_Buzz_Builtin); + // just one buzzer type supported: + hal.util->toneAlarm_init(uint8_t(AP_Notify::BuzzerType::BUILTIN)); } buzzer_start_ms = AP_HAL::millis(); buzzer_len_ms = req.duration*1000;