mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 13:53:34 +08:00
Replace sleep with px4_sleep
This is another step to isolate time from the system.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include <px4_time.h>
|
||||
#include "PWMSim.hpp"
|
||||
|
||||
#include <uORB/topics/multirotor_motor_limits.h>
|
||||
@@ -196,7 +197,7 @@ PWMSim::run()
|
||||
|
||||
/* this can happen during boot, but after the sleep its likely resolved */
|
||||
if (_poll_fds_num == 0) {
|
||||
sleep(1);
|
||||
px4_sleep(1);
|
||||
|
||||
PX4_DEBUG("no valid fds");
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user