hotfix for gps sync in usrp_lib.cpp

parent 3b388a0c
...@@ -1141,6 +1141,7 @@ extern "C" { ...@@ -1141,6 +1141,7 @@ extern "C" {
} }
s->usrp = uhd::usrp::multi_usrp::make(args); s->usrp = uhd::usrp::multi_usrp::make(args);
device->priv = s;
if (args.find("clock_source")==std::string::npos) { if (args.find("clock_source")==std::string::npos) {
LOG_I(HW, "Using clock_source == '%d'\n", openair0_cfg[0].clock_source); LOG_I(HW, "Using clock_source == '%d'\n", openair0_cfg[0].clock_source);
...@@ -1166,7 +1167,7 @@ extern "C" { ...@@ -1166,7 +1167,7 @@ extern "C" {
if (s->usrp->get_clock_source(0) == "gpsdo") { if (s->usrp->get_clock_source(0) == "gpsdo") {
s->use_gps = 1; s->use_gps = 1;
if (sync_to_gps(device)) { if (sync_to_gps(device)==EXIT_SUCCESS) {
LOG_I(HW,"USRP synced with GPS!\n"); LOG_I(HW,"USRP synced with GPS!\n");
} }
else { else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment