From 76094bcd8e2aff9fdc60571e13a55ea37fed30a5 Mon Sep 17 00:00:00 2001 From: Consti10 Date: Tue, 2 Apr 2024 16:25:11 +0200 Subject: [PATCH] add audio test mode param --- app/telemetry/settings/documentedparam.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/telemetry/settings/documentedparam.cpp b/app/telemetry/settings/documentedparam.cpp index dbdf17467..2807c8f46 100644 --- a/app/telemetry/settings/documentedparam.cpp +++ b/app/telemetry/settings/documentedparam.cpp @@ -587,9 +587,17 @@ static std::vector> get_parameters_list(){ "No effect if joy rc is disabled."); } { - append_int(ret,"AUDIO_ENABLE", + /*append_int(ret,"AUDIO_ENABLE", ImprovedIntSetting::createEnumEnableDisable(), "enables / disables audio streaming from air to ground. In development. Enabling automatically restarts the air unit !" + );*/ + auto audio_items=std::vector{ + {"DISABLE",0}, + {"ENABLE",1}, + {"TEST",100}, + }; + append_int(ret,"AUDIO_ENABLE",ImprovedIntSetting(0,1000000,audio_items), + "enables / disables audio streaming from air to ground. In development. Use test mode to validate your ground audio output." ); } return ret;