Fix device_args in x300 when setting master_clock

This commit is contained in:
Ismael Gomez 2020-03-26 18:08:42 +01:00
parent 175f7fd587
commit 8e07547909
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ int rf_uhd_open_multi(char* args, void** h, uint32_t nof_channels)
}
} else {
// 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);
args = args2;
handler->current_master_clock = 184320000;