mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 19:13:33 +08:00
Replacing usleep with px4_usleep
This is a step towards isolating time from the system.
This commit is contained in:
@@ -234,7 +234,7 @@ Navigator::run()
|
||||
} else if (pret < 0) {
|
||||
/* this is undesirable but not much we can do - might want to flag unhappy status */
|
||||
PX4_ERR("poll error %d, %d", pret, errno);
|
||||
usleep(10000);
|
||||
px4_usleep(10000);
|
||||
continue;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user