From 0e5704731e36ee5e5691c247c0f2aa06cf711228 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Wed, 10 Jun 2020 09:15:09 +0200 Subject: [PATCH] Removed UHD unrelated changes --- lib/src/radio/radio.cc | 4 ---- srsue/src/phy/sync.cc | 8 +------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/src/radio/radio.cc b/lib/src/radio/radio.cc index f7b428bd2..8356da955 100644 --- a/lib/src/radio/radio.cc +++ b/lib/src/radio/radio.cc @@ -339,7 +339,6 @@ bool radio::tx(rf_buffer_interface& buffer, const uint32_t& nof_samples_, const return false; } - log_h->debug("radio_tx: time=%ld:%f, is_start=%d\n", tx_time.full_secs, tx_time.frac_secs, is_start_of_burst); int ret = srslte_rf_send_timed_multi( &rf_device, radio_buffers, nof_samples, tx_time.full_secs, tx_time.frac_secs, true, is_start_of_burst, false); is_start_of_burst = false; @@ -352,7 +351,6 @@ void radio::tx_end() return; } if (!is_start_of_burst) { - log_h->debug("radio_tx_end: time=%ld:%f\n", end_of_burst_time.full_secs, end_of_burst_time.frac_secs); srslte_rf_send_timed2(&rf_device, zeros, 0, end_of_burst_time.full_secs, end_of_burst_time.frac_secs, false, true); is_start_of_burst = true; } @@ -426,7 +424,6 @@ void radio::set_rx_srate(const double& srate) if (!is_initialized) { return; } - log_h->debug("Setting RX sample rate=%f\n", srate); srslte_rf_set_rx_srate(&rf_device, srate); } @@ -492,7 +489,6 @@ void radio::set_tx_srate(const double& srate) if (!is_initialized) { return; } - log_h->debug("Setting TX sample rate=%f\n", srate); cur_tx_srate = srslte_rf_set_tx_srate(&rf_device, srate); int nsamples = 0; diff --git a/srsue/src/phy/sync.cc b/srsue/src/phy/sync.cc index e45cfd9bf..4dc1f8195 100644 --- a/srsue/src/phy/sync.cc +++ b/srsue/src/phy/sync.cc @@ -483,14 +483,7 @@ void sync::run_camping_state() break; case 0: Warning("SYNC: Out-of-sync detected in PSS/SSS\n"); - - // End transmission burst, avoid Tx Underflow - radio_h->tx_end(); - - // Inform about the out-of-synch to upper layer out_of_sync(); - - // Releases assigned worker worker->release(); // Force decoding MIB, for making sure that the TTI will be right @@ -791,6 +784,7 @@ void sync::set_sampling_rate() srate_mode = SRATE_CAMP; radio_h->set_rx_srate(current_srate); + radio_h->set_tx_srate(current_srate); } else { Error("Error setting sampling rate for cell with %d PRBs\n", cell.nof_prb); }