Fix device_args in x300 when setting master_clock

master
Ismael Gomez 5 years ago
parent 175f7fd587
commit 8e07547909

@ -612,7 +612,7 @@ int rf_uhd_open_multi(char* args, void** h, uint32_t nof_channels)
} }
} else { } else {
// If args is set and x300 type is specified, make sure master_clock_rate is defined // If args is set and x300 type is specified, make sure master_clock_rate is defined
if (strstr(args, "type=x300") && !strstr(args, "master_clock_rate")) { if (strstr(args, "type=x300")) {
sprintf(args2, "%s,master_clock_rate=184.32e6", args); sprintf(args2, "%s,master_clock_rate=184.32e6", args);
args = args2; args = args2;
handler->current_master_clock = 184320000; handler->current_master_clock = 184320000;

Loading…
Cancel
Save