From 26ff9cfc3eef098695912a60921819e0327ebfeb Mon Sep 17 00:00:00 2001 From: bvernoux Date: Mon, 6 Jun 2016 00:17:32 +0200 Subject: [PATCH] Fix AirSpy Mini calibration --- common/airspy_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/airspy_core.c b/common/airspy_core.c index 3bea146..89b96c7 100644 --- a/common/airspy_core.c +++ b/common/airspy_core.c @@ -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; } }