From 0feacfa1029684b0461f87507d1e113b6fcf397a Mon Sep 17 00:00:00 2001 From: Brumi-2021 <86470699+Brumi-2021@users.noreply.github.com> Date: Sun, 22 Oct 2023 19:10:26 +0200 Subject: [PATCH] Solve mic to hp small side effect (#1523) * Allowing to hear Mic at TX time with Receiver ON * Solve small side effect to Audio RX App --- firmware/application/apps/ui_mictx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/application/apps/ui_mictx.cpp b/firmware/application/apps/ui_mictx.cpp index 392901c6..3e4cec04 100644 --- a/firmware/application/apps/ui_mictx.cpp +++ b/firmware/application/apps/ui_mictx.cpp @@ -662,8 +662,10 @@ MicTXView::~MicTXView() { audio::input::stop(); transmitter_model.set_target_frequency(tx_frequency); transmitter_model.disable(); - if (rx_enabled) // Also turn off audio rx if enabled + if (rx_enabled) { // Also turn off both (audio rx if enabled, and disable mic_loop to HP) rxaudio(false); + audio::input::loopback_mic_to_hp_disable(); // Leave Mic audio off in the main menu (as original audio path, otherwise we had No audio in next "Audio App") + } baseband::shutdown(); }