mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-11 15:29:28 -05:00
Explicitly set tx_model to make MicTX happy (#1162)
Co-authored-by: kallanreed <kallanreed@noreply.github.com>
This commit is contained in:
parent
650d299c99
commit
7f1c0f6f7e
@ -162,7 +162,7 @@ void MicTXView::rxaudio(bool is_on) {
|
|||||||
// receiver_model.set_nbfm_configuration(n); is called above , depending user's selection (8k5, 11k, 16k).
|
// receiver_model.set_nbfm_configuration(n); is called above , depending user's selection (8k5, 11k, 16k).
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// receiver_model.set_target_frequency(field_frequency.value()); //probably this too can be commented out.
|
|
||||||
if (bool_same_F_tx_rx_enabled) // when stop TX ,define to which freq RX we return
|
if (bool_same_F_tx_rx_enabled) // when stop TX ,define to which freq RX we return
|
||||||
receiver_model.set_target_frequency(tx_frequency); // Update freq also for RX = TX
|
receiver_model.set_target_frequency(tx_frequency); // Update freq also for RX = TX
|
||||||
else
|
else
|
||||||
@ -595,6 +595,12 @@ MicTXView::MicTXView(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// These shouldn't be necessary, but because
|
||||||
|
// this app uses both transmitter_model and directly
|
||||||
|
// configures the baseband, these end up being required.
|
||||||
|
transmitter_model.set_sampling_rate(sampling_rate);
|
||||||
|
transmitter_model.set_baseband_bandwidth(1750000);
|
||||||
|
|
||||||
set_tx(false);
|
set_tx(false);
|
||||||
|
|
||||||
audio::set_rate(audio::Rate::Hz_24000);
|
audio::set_rate(audio::Rate::Hz_24000);
|
||||||
|
Loading…
Reference in New Issue
Block a user