aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-11 10:29:59 -0800
committerJosh Blum <josh@joshknows.com>2011-02-11 10:29:59 -0800
commit24c626a1476895a6cb7dbb26b438778c61e52fc2 (patch)
tree5abc5b05ac59324595c7d811e9ff3946462780df /host/lib
parent68e4a34d4381ad4d75f1c75ee67a23c95d747986 (diff)
downloaduhd-24c626a1476895a6cb7dbb26b438778c61e52fc2.tar.gz
uhd-24c626a1476895a6cb7dbb26b438778c61e52fc2.tar.bz2
uhd-24c626a1476895a6cb7dbb26b438778c61e52fc2.zip
usrp: added mboard param to get time now and last pps
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/multi_usrp.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp
index 817d7b085..4bdb2bf2e 100644
--- a/host/lib/usrp/multi_usrp.cpp
+++ b/host/lib/usrp/multi_usrp.cpp
@@ -128,12 +128,12 @@ public:
return _mboard(mboard)[MBOARD_PROP_NAME].as<std::string>();
}
- time_spec_t get_time_now(void){
- return _mboard(0)[MBOARD_PROP_TIME_NOW].as<time_spec_t>();
+ time_spec_t get_time_now(size_t mboard = 0){
+ return _mboard(mboard)[MBOARD_PROP_TIME_NOW].as<time_spec_t>();
}
- time_spec_t get_time_last_pps(void){
- return _mboard(0)[MBOARD_PROP_TIME_PPS].as<time_spec_t>();
+ time_spec_t get_time_last_pps(size_t mboard = 0){
+ return _mboard(mboard)[MBOARD_PROP_TIME_PPS].as<time_spec_t>();
}
void set_time_now(const time_spec_t &time_spec, size_t mboard){