hotfix for gps sync in usrp_lib.cpp

This commit is contained in:
Florian Kaltenberger (Italie)
2019-10-02 16:57:21 +02:00
parent 996b90a397
commit b3bc216df1
+2 -1
View File
@@ -1141,6 +1141,7 @@ extern "C" {
}
s->usrp = uhd::usrp::multi_usrp::make(args);
device->priv = s;
if (args.find("clock_source")==std::string::npos) {
LOG_I(HW, "Using clock_source == '%d'\n", openair0_cfg[0].clock_source);
@@ -1166,7 +1167,7 @@ extern "C" {
if (s->usrp->get_clock_source(0) == "gpsdo") {
s->use_gps = 1;
if (sync_to_gps(device)) {
if (sync_to_gps(device)==EXIT_SUCCESS) {
LOG_I(HW,"USRP synced with GPS!\n");
}
else {