Skip to content

Commit

Permalink
Fix AirSpy Mini calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
bvernoux committed Jun 5, 2016
1 parent 8ea1e6f commit 26ff9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/airspy_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ void sys_clock_init(void)
if(airspy_calib.header == AIRSPY_FLASH_CALIB_HEADER)
{
const int invppb = 1000000000;
airspy_conf->r820t_conf_rw.xtal_freq -= ((int64_t)airspy_conf->r820t_conf_rw.xtal_freq * (int64_t)airspy_calib.correction_ppb + invppb / 2) / invppb;
airspy_conf->r820t_conf_rw.xtal_freq += ((int64_t)airspy_conf->r820t_conf_rw.xtal_freq * (int64_t)airspy_calib.correction_ppb + invppb / 2) / invppb;
}
}

Expand Down

0 comments on commit 26ff9cf

Please sign in to comment.