diff options
author | Philip Balister <philip@opensdr.com> | 2011-02-01 05:42:36 -0800 |
---|---|---|
committer | Philip Balister <philip@opensdr.com> | 2011-02-01 05:42:36 -0800 |
commit | 781cddee31078e461202c2cf16f3de2f1f236a27 (patch) | |
tree | dcd8e1ff8e696dc00b91b425928a3367f05c9a25 /host/examples/test_pps_input.cpp | |
parent | cd45fb6be615a6f133e2c62a46f7c5eba76f72c1 (diff) | |
parent | 52e9c8f8027d0bbe1e6b0f57e30f985613e48be2 (diff) | |
download | uhd-781cddee31078e461202c2cf16f3de2f1f236a27.tar.gz uhd-781cddee31078e461202c2cf16f3de2f1f236a27.tar.bz2 uhd-781cddee31078e461202c2cf16f3de2f1f236a27.zip |
Merge branch 'usrp_e100_devel' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e100_devel
Conflicts:
host/lib/usrp/usrp_e100/clock_ctrl.cpp
Diffstat (limited to 'host/examples/test_pps_input.cpp')
-rw-r--r-- | host/examples/test_pps_input.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/host/examples/test_pps_input.cpp b/host/examples/test_pps_input.cpp index 273c73df0..994b7ca87 100644 --- a/host/examples/test_pps_input.cpp +++ b/host/examples/test_pps_input.cpp @@ -1,5 +1,5 @@ // -// Copyright 2010 Ettus Research LLC +// Copyright 2010-2011 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -51,13 +51,12 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ //create a usrp device std::cout << std::endl; std::cout << boost::format("Creating the usrp device with: %s...") % args << std::endl; - uhd::usrp::multi_usrp::sptr sdev = uhd::usrp::multi_usrp::make(args); - uhd::device::sptr dev = sdev->get_device(); - std::cout << boost::format("Using Device: %s") % sdev->get_pp_string() << std::endl; + uhd::usrp::multi_usrp::sptr usrp = uhd::usrp::multi_usrp::make(args); + std::cout << boost::format("Using Device: %s") % usrp->get_pp_string() << std::endl; //set the time at an unknown pps (will throw if no pps) std::cout << std::endl << "Attempt to detect the PPS and set the time..." << std::endl << std::endl; - sdev->set_time_unknown_pps(uhd::time_spec_t(0.0)); + usrp->set_time_unknown_pps(uhd::time_spec_t(0.0)); std::cout << std::endl << "Success!" << std::endl << std::endl; return 0; } |