vdev_posix: switch back to CLOCK_REALTIME

Otherwise SITL doesn't work anymore, at least on Linux
This commit is contained in:
Julian Oes
2016-02-16 21:09:22 +01:00
parent ebeed9df65
commit fbac24ad28
+2 -1
View File
@@ -314,7 +314,8 @@ extern "C" {
// Get the current time
struct timespec ts;
px4_clock_gettime(CLOCK_MONOTONIC, &ts);
// FIXME: check if QURT should probably be using CLOCK_MONOTONIC
px4_clock_gettime(CLOCK_REALTIME, &ts);
// Calculate an absolute time in the future
const unsigned billion = (1000 * 1000 * 1000);