remove warning when UE is already in camping

master
Ismael Gomez 3 years ago
parent 146f12f0c0
commit d32bfa3756

@ -279,15 +279,11 @@ private:
std::lock_guard<std::mutex> lock(mutex); std::lock_guard<std::mutex> lock(mutex);
return std::isnormal(current_srate) and current_srate > 0.0f; return std::isnormal(current_srate) and current_srate > 0.0f;
} }
bool set_camp(float new_srate) void set_camp(float new_srate)
{ {
std::lock_guard<std::mutex> lock(mutex); std::lock_guard<std::mutex> lock(mutex);
if (srate_mode != SRATE_CAMP) {
current_srate = new_srate; current_srate = new_srate;
srate_mode = SRATE_CAMP; srate_mode = SRATE_CAMP;
return true;
}
return false;
} }
bool set_find() bool set_find()
{ {

@ -927,13 +927,10 @@ void sync::set_sampling_rate()
return; return;
} }
if (srate.set_camp(new_srate)) { srate.set_camp(new_srate);
Info("SYNC: Setting sampling rate %.2f MHz", new_srate / 1000000); Info("SYNC: Setting sampling rate %.2f MHz", new_srate / 1000000);
radio_h->set_rx_srate(new_srate); radio_h->set_rx_srate(new_srate);
radio_h->set_tx_srate(new_srate); radio_h->set_tx_srate(new_srate);
} else {
Error("Error setting sampling rate for cell with %d PRBs", cell.get().nof_prb);
}
} }
uint32_t sync::get_current_tti() uint32_t sync::get_current_tti()

Loading…
Cancel
Save