Replace sleep with px4_sleep

This is another step to isolate time from the system.
This commit is contained in:
Julian Oes
2018-10-04 10:19:06 +02:00
parent 3f695870a4
commit d70b0f1c8c
13 changed files with 20 additions and 15 deletions
+2 -2
View File
@@ -40,7 +40,7 @@
*/
#include "hello_example.h"
#include <px4_time.h>
#include <unistd.h>
#include <stdio.h>
@@ -53,7 +53,7 @@ int HelloExample::main()
int i = 0;
while (!appState.exitRequested() && i < 5) {
sleep(2);
px4_sleep(2);
printf(" Doing work...\n");
++i;