From a031f6eec8db200773daaf3a8ace9c92c0f8279e Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 1 Jun 2016 16:15:27 +0100 Subject: [PATCH] land_detector: fix timestamp type (#4710) The overflow of the uint32_t lead to the land_detector start getting aborted. --- src/modules/land_detector/land_detector_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/land_detector/land_detector_main.cpp b/src/modules/land_detector/land_detector_main.cpp index 5572c1b2f1..bc9b9f8d76 100644 --- a/src/modules/land_detector/land_detector_main.cpp +++ b/src/modules/land_detector/land_detector_main.cpp @@ -140,7 +140,7 @@ static int land_detector_start(const char *mode) } /* avoid memory fragmentation by not exiting start handler until the task has fully started */ - const uint32_t timeout = hrt_absolute_time() + 5000000; //5 second timeout + const uint64_t timeout = hrt_absolute_time() + 5000000; //5 second timeout /* avoid printing dots just yet and do one sleep before the first check */ usleep(10000);