initialize RF UHD handler in init

This commit is contained in:
Andre Puschmann 2018-02-21 13:20:34 +01:00
parent 2c85da3e4b
commit f60a9eab41
1 changed files with 3 additions and 2 deletions

View File

@ -334,11 +334,12 @@ int rf_uhd_open_multi(char *args, void **h, uint32_t nof_channels)
perror("malloc");
return -1;
}
bzero(handler, sizeof(rf_uhd_handler_t));
*h = handler;
/* Set priority to UHD threads */
uhd_set_thread_priority(uhd_default_thread_priority, true);
/* Find available devices */
uhd_string_vector_handle devices_str;
uhd_string_vector_make(&devices_str);