Do not change master clock rate in UHD if dynamic rate is supported

master
Ismael Gomez 6 years ago
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) { void rf_uhd_set_master_clock_rate(void *h, double rate) {
rf_uhd_handler_t *handler = (rf_uhd_handler_t*) h; 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) { if (handler->dynamic_rate) {
uhd_usrp_set_master_clock_rate(handler->usrp, rate, 0); uhd_usrp_set_master_clock_rate(handler->usrp, rate, 0);
} }

Loading…
Cancel
Save