Skip to content
Snippets Groups Projects
Commit cbb7e3ce authored by Ismael Gomez's avatar Ismael Gomez
Browse files

fix for UHD 3.11 logging

parent c49a2997
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ extern "C" {
#include "uhd_c_api.h"
}
#if UHD_VERSION < 31100
static void (*handler)(const char*);
void translate_handler(uhd::msg::type_t type, const std::string & msg)
......@@ -16,11 +17,14 @@ void translate_handler(uhd::msg::type_t type, const std::string & msg)
if(handler)
handler(msg.c_str());
}
#endif
void rf_uhd_register_msg_handler_c(void (*new_handler)(const char*))
{
#if UHD_VERSION < 31100
handler = new_handler;
uhd::msg::register_handler(translate_handler);
#endif
}
void uhd_tx_metadata_set_time_spec(uhd_tx_metadata_handle *md, time_t secs, double frac_secs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment