From d21fdf9988d456e0abcdd99e332409b014347e02 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 4 Aug 2018 12:30:56 -0400 Subject: [PATCH] pwm_out_sim: replace usleep with sleep - the valid values are 0-999999 --- src/drivers/pwm_out_sim/PWMSim.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/pwm_out_sim/PWMSim.cpp b/src/drivers/pwm_out_sim/PWMSim.cpp index b073cc5c7a..8b90c4d75b 100644 --- a/src/drivers/pwm_out_sim/PWMSim.cpp +++ b/src/drivers/pwm_out_sim/PWMSim.cpp @@ -199,7 +199,7 @@ PWMSim::run() /* this can happen during boot, but after the sleep its likely resolved */ if (_poll_fds_num == 0) { - usleep(1000 * 1000); + sleep(1); PX4_DEBUG("no valid fds"); continue;