microRTPS: replace usleep() by px4_usleep()

This commit is contained in:
TSC21
2019-01-02 00:14:18 +00:00
committed by Nuno Marques
parent 37e71a4d9d
commit adbec90018
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -36,8 +36,9 @@
#include <errno.h>
#include <sys/socket.h>
#include <cstdlib>
#include <px4_time.h>
#include "microRTPS_transport.h"
#include <microRTPS_transport.h>
#define DEFAULT_UART "/dev/ttyACM0"
@@ -326,7 +327,7 @@ int UART_node::init()
while (0 < ::read(uart_fd, (void *)&aux, 64)) {
//printf("%s ", aux);
flush = true;
usleep(1000);
px4_usleep(1000);
}
if (flush) {