mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -05:00
Allowing to hear Mic at TX time with Receiver ON (#1522)
This commit is contained in:
parent
1b73a138b6
commit
a1496c1b79
@ -101,8 +101,11 @@ void MicTXView::set_tx(bool enable) {
|
|||||||
transmitting = false;
|
transmitting = false;
|
||||||
configure_baseband();
|
configure_baseband();
|
||||||
transmitter_model.disable();
|
transmitter_model.disable();
|
||||||
if (rx_enabled) // If audio RX is enabled and we've been transmitting
|
if (rx_enabled) { // If audio RX is enabled and we've been transmitting
|
||||||
rxaudio(true); // Turn back on audio RX
|
rxaudio(true); // Turn back on audio RX
|
||||||
|
vumeter.set_value(0); // Reset vumeter
|
||||||
|
vumeter.dirty(); // Force to refresh vumeter.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -517,8 +520,10 @@ MicTXView::MicTXView(
|
|||||||
check_rxactive.on_select = [this](Checkbox&, bool v) {
|
check_rxactive.on_select = [this](Checkbox&, bool v) {
|
||||||
// vumeter.set_value(0); //Start with a clean vumeter
|
// vumeter.set_value(0); //Start with a clean vumeter
|
||||||
rx_enabled = v;
|
rx_enabled = v;
|
||||||
check_mic_to_HP.hidden(rx_enabled); // Hide or show "Hear Mic" checkbox depending if we activate the receiver (we should better not activate both things)
|
check_mic_to_HP.hidden(rx_enabled); // Togle Hide / show "Hear Mic" checkbox depending if we activate or not the receiver. (if RX on => no visible "Mic Hear" option)
|
||||||
check_mic_to_HP.set_value(false); // If activate receiver sound , reset the possible activation of "Hear to Mic" .
|
if ((rx_enabled) && (transmitting))
|
||||||
|
check_mic_to_HP.set_value(transmitting); // Once we activate the "Rx audio" in reception time we disable "Hear Mic", but we allow it again in TX time.
|
||||||
|
|
||||||
// check_va.hidden(v); //Hide or show voice activation
|
// check_va.hidden(v); //Hide or show voice activation
|
||||||
rxaudio(v); // Activate-Deactivate audio RX (receiver) accordingly
|
rxaudio(v); // Activate-Deactivate audio RX (receiver) accordingly
|
||||||
set_dirty(); // Refresh interface
|
set_dirty(); // Refresh interface
|
||||||
|
Loading…
Reference in New Issue
Block a user