From b3bc216df104bc8b441267fc201b9dccc7266299 Mon Sep 17 00:00:00 2001 From: "Florian Kaltenberger (Italie)" Date: Wed, 2 Oct 2019 16:57:21 +0200 Subject: [PATCH] hotfix for gps sync in usrp_lib.cpp --- targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp b/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp index 6e6197c898..a608bbcc75 100644 --- a/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp +++ b/targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp @@ -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 {