Skip to content

Commit

Permalink
AP_Periph: rename Notify buzzertype enumeration
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Jun 20, 2024
1 parent f07ac41 commit 1a2d940
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tools/AP_Periph/buzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1a2d940

Please sign in to comment.