POSIX: get px4_poll right

Like this the timeouts are going through instead of hanging everything.
This commit is contained in:
Julian Oes
2016-02-19 16:59:47 +01:00
parent 9e77f554d2
commit b2ad3f5fbd
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -314,7 +314,7 @@ extern "C" {
// Get the current time
struct timespec ts;
px4_clock_gettime(CLOCK_REALTIME, &ts);
px4_clock_gettime(CLOCK_MONOTONIC, &ts);
// Calculate an absolute time in the future
const unsigned billion = (1000 * 1000 * 1000);