mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-09 18:25:00 -04:00
ReceiverModel: Eliminate now-redundant BasebandConfiguration.
This commit is contained in:
parent
b60e88ef68
commit
371c6e0906
3 changed files with 20 additions and 41 deletions
|
@ -286,11 +286,8 @@ void AnalogAudioView::update_modulation(const ReceiverModel::Mode modulation) {
|
|||
baseband::run_image(image_tag);
|
||||
|
||||
const auto is_wideband_spectrum_mode = (modulation == ReceiverModel::Mode::SpectrumAnalysis);
|
||||
receiver_model.set_baseband_configuration({
|
||||
.mode = toUType(modulation),
|
||||
.sampling_rate = is_wideband_spectrum_mode ? 20000000U : 3072000U,
|
||||
.decimation_factor = 1,
|
||||
});
|
||||
receiver_model.set_modulation(toUType(modulation));
|
||||
receiver_model.set_sampling_rate(is_wideband_spectrum_mode ? 20000000 : 3072000);
|
||||
receiver_model.set_baseband_bandwidth(is_wideband_spectrum_mode ? 12000000 : 1750000);
|
||||
receiver_model.enable();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue