fix(rad1o): Restore hackrf max2837_freq_nominal_hz behaviour

This commit is contained in:
schneider
2017-02-03 19:33:25 +01:00
parent c0c0fab368
commit 5f46bce325

View File

@ -70,9 +70,12 @@ bool set_freq(const uint64_t freq)
if(freq_mhz < MAX_LP_FREQ_MHZ)
{
rf_path_set_filter(&rf_path, RF_PATH_FILTER_LOW_PASS);
#ifdef RAD1O
max2837_freq_nominal_hz = 2300000000;
#else
/* IF is graduated from 2650 MHz to 2343 MHz */
max2837_freq_nominal_hz = 2650000000 - (freq / 7);
max2837_freq_nominal_hz = 2300000000;
#endif
mixer_freq_mhz = (max2837_freq_nominal_hz / FREQ_ONE_MHZ) + freq_mhz;
/* Set Freq and read real freq */
real_mixer_freq_hz = mixer_set_frequency(&mixer, mixer_freq_mhz);