Browse Source

pwm_out_sim: replace usleep with sleep

- the valid values are 0-999999
sbg
Daniel Agar 7 years ago committed by Lorenz Meier
parent
commit
d21fdf9988
  1. 2
      src/drivers/pwm_out_sim/PWMSim.cpp

2
src/drivers/pwm_out_sim/PWMSim.cpp

@ -199,7 +199,7 @@ PWMSim::run() @@ -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;

Loading…
Cancel
Save