AP_Periph: rename Notify buzzertype enumeration

This commit is contained in:
Peter Barker 2024-06-19 14:00:08 +10:00 committed by Peter Barker
parent f07ac41c65
commit 1a2d940330
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ void AP_Periph_FW::handle_beep_command(CanardInstance* canard_instance, CanardRx
if (!initialised) { if (!initialised) {
initialised = true; initialised = true;
hal.rcout->init(); 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_start_ms = AP_HAL::millis();
buzzer_len_ms = req.duration*1000; buzzer_len_ms = req.duration*1000;