diff --git a/firmware/application/tuning.cpp b/firmware/application/tuning.cpp index 5edc48524..0ca8711b9 100644 --- a/firmware/application/tuning.cpp +++ b/firmware/application/tuning.cpp @@ -49,32 +49,19 @@ constexpr rf::Frequency high_band_second_lo_frequency(const rf::Frequency target Config low_band(const rf::Frequency target_frequency) { const rf::Frequency first_lo_frequency = target_frequency + low_band_second_lo_frequency(target_frequency); const rf::Frequency second_lo_frequency = first_lo_frequency - target_frequency; - return { - .first_lo_frequency = first_lo_frequency, - .second_lo_frequency = second_lo_frequency, - .rf_path_band = rf::path::Band::Low, - .baseband_q_invert = true, - }; + const bool baseband_q_invert = true; + return { first_lo_frequency, second_lo_frequency, rf::path::Band::Low, baseband_q_invert }; } Config mid_band(const rf::Frequency target_frequency) { - return { - .first_lo_frequency = 0, - .second_lo_frequency = target_frequency, - .rf_path_band = rf::path::Band::Mid, - .baseband_q_invert = false, - }; + return { 0, target_frequency, rf::path::Band::Mid, false }; } Config high_band(const rf::Frequency target_frequency) { const rf::Frequency first_lo_frequency = target_frequency - high_band_second_lo_frequency(target_frequency); const rf::Frequency second_lo_frequency = target_frequency - first_lo_frequency; - return { - .first_lo_frequency = first_lo_frequency, - .second_lo_frequency = second_lo_frequency, - .rf_path_band = rf::path::Band::High, - .baseband_q_invert = false, - }; + const bool baseband_q_invert = false; + return { first_lo_frequency, second_lo_frequency, rf::path::Band::High, baseband_q_invert }; } } /* namespace */