Replace sleep with px4_sleep

This is another step to isolate time from the system.
This commit is contained in:
Julian Oes
2018-12-22 10:32:18 +01:00
parent 3f695870a4
commit d70b0f1c8c
13 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ int wait_for_topic(int argc, char *argv[])
while (orb_exists(&meta, 0) != 0 && (timeout && (elapsed < timeout)))
{
sleep(1);
px4_sleep(1);
elapsed += 1;
}
+1
View File
@@ -35,5 +35,6 @@ __END_DECLS
#define px4_clock_settime clock_settime
#define px4_usleep system_usleep
#define px4_sleep system_sleep
#endif