Set global setting so that setFrequency will work correctly

This commit is contained in:
Reed Nightingale 2020-01-19 20:42:44 -08:00
parent 6d5fb97c62
commit dd3a6162af

View File

@ -199,8 +199,9 @@ void ssBfoValidate(const long int candidate_value_in, long int* validated_value_
} }
void ssBfoChange(const long int new_value, char* buff_out, const size_t buff_out_size) void ssBfoChange(const long int new_value, char* buff_out, const size_t buff_out_size)
{ {
si5351bx_setfreq(0, new_value); globalSettings.usbCarrierFreq = new_value;
setFrequency(GetActiveVfoFreq()); setFrequency(GetActiveVfoFreq());
si5351bx_setfreq(0, new_value);
formatFreq(new_value,buff_out,buff_out_size); formatFreq(new_value,buff_out,buff_out_size);
strncat_P(buff_out,(const char*)F("Hz"),buff_out_size - strlen(buff_out)); strncat_P(buff_out,(const char*)F("Hz"),buff_out_size - strlen(buff_out));
} }