mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-27 08:46:01 -04:00
Use freq from AppSettings unless passed from another app (#2073)
This commit is contained in:
parent
d29172f41e
commit
56303eb385
12 changed files with 21 additions and 16 deletions
|
@ -596,6 +596,7 @@ MicTXView::MicTXView(
|
|||
NavigationView& nav,
|
||||
ReceiverModel::settings_t override)
|
||||
: MicTXView(nav) {
|
||||
// Settings to override when launched from another app (versus from AppSettings .ini file)
|
||||
// Try to use the modulation/bandwidth from RX settings.
|
||||
// TODO: These concepts should be merged so there's only one.
|
||||
switch (override.mode) {
|
||||
|
@ -616,6 +617,7 @@ MicTXView::MicTXView(
|
|||
break;
|
||||
}
|
||||
|
||||
field_frequency.set_value(override.frequency_app_override);
|
||||
check_common_freq_tx_rx.set_value(true); // freq passed from other app is in tx_frequency, so set rx_frequency=tx_frequency
|
||||
|
||||
// TODO: bandwidth selection is tied too tightly to the UI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue