pwm_out_sim: replace usleep with sleep

- the valid values are 0-999999
This commit is contained in:
Daniel Agar
2018-08-04 12:30:56 -04:00
committed by Lorenz Meier
parent d3f5c06ba7
commit d21fdf9988
+1 -1
View File
@@ -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;