mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
Fix floating point limitation in frequency correction
This commit is contained in:
parent
fa3a74df94
commit
a9312aab4d
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ uint64_t Cal::FrequencyCorrectionToDevice(uint64_t freq) {
|
|||
// The frequency calibration is only used when the internal reference is active.
|
||||
// If an external reference is in use, it is assumed to already be at the correct frequency
|
||||
if(!HW::Ref::usingExternal()) {
|
||||
freq -= freq * cal.TCXO_PPM_correction * 1e-6f;
|
||||
freq -= (int32_t) (freq * cal.TCXO_PPM_correction * 1e-6f);
|
||||
}
|
||||
return freq;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue