From 3be8569b5b253164c854e5ad8d637bf3d8422593 Mon Sep 17 00:00:00 2001 From: michael-west Date: Wed, 2 Jun 2021 13:02:47 -0700 Subject: dboard_iface: Fix sleep() Sleep was incorrectly in nanosecond counts instead of microsecond counts. Signed-off-by: michael-west --- host/lib/usrp/dboard_iface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') 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())); } } } -- cgit v1.2.3