Rodemfr/MicronetToNMEA

New calculated frequency offset not considered

Closed this issue · 1 comments

In the end of MenuCalibrateRfFrequency() we make an reset for the frequency values. But in SetFrequency() we don't consider the just determined offset value. For that a new start is required.

` yield();
} while (!exitTuneLoop);

gRfReceiver.SetBandwidth(250);
gRfReceiver.SetFrequencyOffset(gConfiguration.rfFrequencyOffset_MHz);
gRfReceiver.SetFrequency(MICRONET_RF_CENTER_FREQUENCY_MHZ);

}
`

Correct is:
gRfReceiver.SetFrequency(MICRONET_RF_CENTER_FREQUENCY_MHZ+gConfiguration.rfFrequencyOffset_MHz);

OK, this was wrong. The addition is made in SetFrequency().
I close it.