mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-27 00:35:59 -04:00
Tuner code readability (no functional change) (#1820)
This commit is contained in:
parent
8c996b5bc6
commit
bd8385464e
3 changed files with 25 additions and 24 deletions
|
@ -184,11 +184,13 @@ bool set_tuning_frequency(const rf::Frequency frequency) {
|
|||
if (tuning_config.is_valid()) {
|
||||
first_if.disable();
|
||||
|
||||
// Program first local oscillator frequency (if there is one) into RFFC507x
|
||||
if (tuning_config.first_lo_frequency) {
|
||||
first_if.set_frequency(tuning_config.first_lo_frequency);
|
||||
first_if.enable();
|
||||
}
|
||||
|
||||
// Program second local oscillator frequency into MAX283x
|
||||
const auto result_second_if = second_if->set_frequency(tuning_config.second_lo_frequency);
|
||||
|
||||
rf_path.set_band(tuning_config.rf_path_band);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue