mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
pwm_out_sim: replace usleep with sleep
- the valid values are 0-999999
This commit is contained in:
parent
d3f5c06ba7
commit
d21fdf9988
@ -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…
x
Reference in New Issue
Block a user