aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2021-06-02 13:02:47 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2021-06-03 14:49:06 -0500
commit3be8569b5b253164c854e5ad8d637bf3d8422593 (patch)
treebc3ff9902e59738cb5e9ca9a28b957779259d1f9 /host
parentff0cf9b4331c39b97b525eaa12f4e073ca4a8290 (diff)
downloaduhd-3be8569b5b253164c854e5ad8d637bf3d8422593.tar.gz
uhd-3be8569b5b253164c854e5ad8d637bf3d8422593.tar.bz2
uhd-3be8569b5b253164c854e5ad8d637bf3d8422593.zip
dboard_iface: Fix sleep()
Sleep was incorrectly in nanosecond counts instead of microsecond counts. Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/dboard_iface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard_iface.cpp b/host/lib/usrp/dboard_iface.cpp
index 4a3836151..b7eec3ffb 100644
--- a/host/lib/usrp/dboard_iface.cpp
+++ b/host/lib/usrp/dboard_iface.cpp
@@ -26,7 +26,7 @@ void dboard_iface::sleep(const boost::chrono::nanoseconds& time)
if (time < boost::chrono::microseconds(1)) {
std::this_thread::sleep_for(std::chrono::microseconds(1));
} else {
- std::this_thread::sleep_for(std::chrono::microseconds(time.count()));
+ std::this_thread::sleep_for(std::chrono::nanoseconds(time.count()));
}
}
}