mirror of https://github.com/PentHertz/srsLTE.git
Do not change master clock rate in UHD if dynamic rate is supported
This commit is contained in:
parent
04ab6caf69
commit
6d2c6ec58d
|
@ -630,7 +630,7 @@ int rf_uhd_close(void *h)
|
|||
|
||||
void rf_uhd_set_master_clock_rate(void *h, double rate) {
|
||||
rf_uhd_handler_t *handler = (rf_uhd_handler_t*) h;
|
||||
if (rate != handler->current_master_clock) {
|
||||
if (fmod(handler->current_master_clock, rate)) {
|
||||
if (handler->dynamic_rate) {
|
||||
uhd_usrp_set_master_clock_rate(handler->usrp, rate, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue