mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-05 07:24:44 -04:00
Fixed LO PPM calculation for the HackRF and Airspy
This commit is contained in:
@@ -266,7 +266,8 @@ bool AirspyInput::handleMessage(const Message& message)
|
||||
|
||||
void AirspyInput::setCenterFrequency(quint64 freq_hz)
|
||||
{
|
||||
freq_hz += (freq_hz * m_settings.m_LOppmTenths) / 10000000ULL;
|
||||
qint64 df = ((qint64)freq_hz * m_settings.m_LOppmTenths) / 10000000LL;
|
||||
freq_hz += df;
|
||||
|
||||
airspy_error rc = (airspy_error) airspy_set_freq(m_dev, static_cast<uint32_t>(freq_hz));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user