mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 07:43:34 +08:00
land_detector: fix timestamp type (#4710)
The overflow of the uint32_t lead to the land_detector start getting aborted.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user