mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 07:09:48 +08:00
pwm_out_sim: replace usleep with sleep
- the valid values are 0-999999
This commit is contained in:
committed by
Lorenz Meier
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;
|
||||
|
||||
Reference in New Issue
Block a user