From 5e41ea9d5b67e0b5192635e8817e24a841f826ec Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Tue, 22 Aug 2017 10:02:41 +0200 Subject: [PATCH] Fixes #96. Reduce TX/RX offset for 20MHz. --- lib/src/radio/radio.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/radio/radio.cc b/lib/src/radio/radio.cc index bc74660b0..872fdda7e 100644 --- a/lib/src/radio/radio.cc +++ b/lib/src/radio/radio.cc @@ -333,7 +333,7 @@ void radio::set_tx_srate(float srate) } else if (srate_khz == 15.36e3) { nsamples = 131; } else if (srate_khz == 23.04e3) { - nsamples = 175; + nsamples = 150; } else { /* Interpolate from known values */ printf("\nWarning TX/RX time offset for sampling rate %.0f KHz not calibrated. Using interpolated value\n\n", cur_tx_srate); @@ -353,7 +353,7 @@ void radio::set_tx_srate(float srate) } else if (srate_khz == 15.36e3) { nsamples = 86; } else if (srate_khz == 23.04e3) { - nsamples = 119; + nsamples = 110; } else { /* Interpolate from known values */ printf("\nWarning TX/RX time offset for sampling rate %.0f KHz not calibrated. Using interpolated value\n\n", cur_tx_srate);