From 080b1e3239167929b32e4174e2cfe42cd4f2064b Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Wed, 2 May 2018 16:39:47 +0200 Subject: [PATCH] set default TX mode to continuous for all platforms (solved issues after commit 5570dcd938eb37190162ae10cade86353492df0f) --- lib/src/radio/radio.cc | 3 +-- lib/src/radio/radio_multi.cc | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/src/radio/radio.cc b/lib/src/radio/radio.cc index 450e098ea..622e32589 100644 --- a/lib/src/radio/radio.cc +++ b/lib/src/radio/radio.cc @@ -51,12 +51,11 @@ bool radio::init(char *args, char *devname, uint32_t nof_channels) // Suppress radio stdout srslte_rf_suppress_stdout(&rf_device); - continuous_tx = false; + continuous_tx = true; tx_adv_auto = true; // Set default preamble length each known device // We distinguish by device family, maybe we should calibrate per device if (strstr(srslte_rf_name(&rf_device), "uhd")) { - continuous_tx = true; } else if (strstr(srslte_rf_name(&rf_device), "bladerf")) { burst_preamble_sec = blade_default_burst_preamble_sec; } else { diff --git a/lib/src/radio/radio_multi.cc b/lib/src/radio/radio_multi.cc index ec2230e1f..43160c499 100644 --- a/lib/src/radio/radio_multi.cc +++ b/lib/src/radio/radio_multi.cc @@ -19,12 +19,11 @@ bool radio_multi::init_multi(uint32_t nof_rx_antennas, char* args, char* devname // Suppress radio stdout srslte_rf_suppress_stdout(&rf_device); - continuous_tx = false; + continuous_tx = true; tx_adv_auto = true; // Set default preamble length each known device // We distinguish by device family, maybe we should calibrate per device if (strstr(srslte_rf_name(&rf_device), "uhd")) { - continuous_tx = true; burst_preamble_sec = uhd_default_burst_preamble_sec; } else if (strstr(srslte_rf_name(&rf_device), "bladerf")) { burst_preamble_sec = blade_default_burst_preamble_sec;