From 223b005d2977e900991f9ddb8e33016bf1e5ef76 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Wed, 27 Jul 2022 20:06:13 +0100 Subject: [PATCH] SITL: SIM_Buzzer: hide params if not WITH_SITL_TONEALARM --- libraries/SITL/SIM_Buzzer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/SITL/SIM_Buzzer.cpp b/libraries/SITL/SIM_Buzzer.cpp index 39f0cbd3e4..0cd1545052 100644 --- a/libraries/SITL/SIM_Buzzer.cpp +++ b/libraries/SITL/SIM_Buzzer.cpp @@ -40,6 +40,8 @@ namespace BuzzerSynth { using namespace SITL; +#ifdef WITH_SITL_TONEALARM + // table of user settable parameters const AP_Param::GroupInfo Buzzer::var_info[] = { @@ -60,8 +62,6 @@ const AP_Param::GroupInfo Buzzer::var_info[] = { AP_GROUPEND }; -#ifdef WITH_SITL_TONEALARM - static sf::SoundBuffer xsoundBuffer; static sf::Sound xdemoSound; @@ -126,6 +126,8 @@ void Buzzer::update(const struct sitl_input &input) using namespace SITL; +const AP_Param::GroupInfo Buzzer::var_info[] = { AP_GROUPEND }; + Buzzer::Buzzer() { }; void Buzzer::update(const struct sitl_input &input) {}