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
This commit is contained in:
Brumi-2021 2023-10-22 19:10:26 +02:00 committed by GitHub
parent a1496c1b79
commit 0feacfa102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}