Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SITL: SIM_Buzzer: hide params if not WITH_SITL_TONEALARM #21293

Merged
merged 1 commit into from
Aug 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions libraries/SITL/SIM_Buzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {

Expand All @@ -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;

Expand Down Expand Up @@ -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) {}
Expand Down