aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-12-12 16:28:14 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-12-12 16:28:14 +0100
commit0efb3830dcd441ffdb53ebe69f2dc2886614fb8b (patch)
treece9c5c0be7bf19aa57503eaf3824a564f0d98efb
parent58e264d8ba706f8b8f9fdba6f0256efc21702394 (diff)
downloaddabmod-0efb3830dcd441ffdb53ebe69f2dc2886614fb8b.tar.gz
dabmod-0efb3830dcd441ffdb53ebe69f2dc2886614fb8b.tar.bz2
dabmod-0efb3830dcd441ffdb53ebe69f2dc2886614fb8b.zip
USRP: Handle external pps_src on startup
-rw-r--r--src/output/USRPTime.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/output/USRPTime.cpp b/src/output/USRPTime.cpp
index 232fa58..d1197ec 100644
--- a/src/output/USRPTime.cpp
+++ b/src/output/USRPTime.cpp
@@ -68,6 +68,9 @@ USRPTime::USRPTime(
// let verify_time handle time setup
}
}
+ else if (m_conf.pps_src == "external") {
+ set_usrp_time_from_pps();
+ }
else {
throw std::runtime_error("USRPTime not implemented yet: " +
m_conf.pps_src);