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

This commit is contained in:
Ismael Gomez 2019-07-12 18:18:30 +02:00
parent 04ab6caf69
commit 6d2c6ec58d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}