mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Mic audio ak4951 fix + SSTV description (#2088)
* fixed too long description, thanks to ImDroided * fixed ak4951 RxAudio not working on startup when enabled --------- Co-authored-by: gullradriel <gullradriel@no-mail.com>
This commit is contained in:
parent
a602abf1d8
commit
f091db3270
@ -523,21 +523,6 @@ MicTXView::MicTXView(
|
|||||||
};
|
};
|
||||||
check_mic_to_HP.set_value(mic_to_HP_enabled);
|
check_mic_to_HP.set_value(mic_to_HP_enabled);
|
||||||
|
|
||||||
check_rxactive.on_select = [this](Checkbox&, bool v) {
|
|
||||||
// vumeter.set_value(0); //Start with a clean vumeter
|
|
||||||
rx_enabled = v;
|
|
||||||
check_mic_to_HP.hidden(rx_enabled); // Toggle Hide / show "Hear Mic" checkbox depending if we activate or not the receiver. (if RX on => no visible "Mic Hear" option)
|
|
||||||
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.
|
|
||||||
|
|
||||||
if (rx_enabled)
|
|
||||||
check_va.set_value(false); // Disallow voice activation during RX audio (for now) - Future TODO: Should allow VOX during RX audio
|
|
||||||
|
|
||||||
rxaudio(v); // Activate-Deactivate audio RX (receiver) accordingly
|
|
||||||
set_dirty(); // Refresh interface
|
|
||||||
};
|
|
||||||
check_rxactive.set_value(rx_enabled);
|
|
||||||
|
|
||||||
tx_button.on_select = [this](Button&) {
|
tx_button.on_select = [this](Button&) {
|
||||||
if (!transmitting) {
|
if (!transmitting) {
|
||||||
set_tx(true);
|
set_tx(true);
|
||||||
@ -590,6 +575,21 @@ MicTXView::MicTXView(
|
|||||||
// Trigger receiver to update modulation.
|
// Trigger receiver to update modulation.
|
||||||
if (rx_enabled)
|
if (rx_enabled)
|
||||||
receiver_model.set_squelch_level(receiver_model.squelch_level());
|
receiver_model.set_squelch_level(receiver_model.squelch_level());
|
||||||
|
|
||||||
|
check_rxactive.on_select = [this](Checkbox&, bool v) {
|
||||||
|
// vumeter.set_value(0); //Start with a clean vumeter
|
||||||
|
rx_enabled = v;
|
||||||
|
check_mic_to_HP.hidden(rx_enabled); // Toggle Hide / show "Hear Mic" checkbox depending if we activate or not the receiver. (if RX on => no visible "Mic Hear" option)
|
||||||
|
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.
|
||||||
|
|
||||||
|
if (rx_enabled)
|
||||||
|
check_va.set_value(false); // Disallow voice activation during RX audio (for now) - Future TODO: Should allow VOX during RX audio
|
||||||
|
|
||||||
|
rxaudio(v); // Activate-Deactivate audio RX (receiver) accordingly
|
||||||
|
set_dirty(); // Refresh interface
|
||||||
|
};
|
||||||
|
check_rxactive.set_value(rx_enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
MicTXView::MicTXView(
|
MicTXView::MicTXView(
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Common SSTV frequencies
|
# Common SSTV frequencies
|
||||||
# frequencies marked Active have more frequent transmissions
|
# 'Active' => most used
|
||||||
f=3640000,d=SSTV 80M
|
f=3640000,d=SSTV 80M
|
||||||
f=7043000,d=SSTV 40M - Active
|
f=7043000,d=SSTV 40M - Active
|
||||||
f=7170000,d=SSTV 40M - Active
|
f=7170000,d=SSTV 40M - Active
|
||||||
|
Loading…
Reference in New Issue
Block a user