Skip to content

Commit

Permalink
land_detector: fix timestamp type (#4710)
Browse files Browse the repository at this point in the history
The overflow of the uint32_t lead to the land_detector start getting
aborted.
  • Loading branch information
julianoes authored and LorenzMeier committed Jun 1, 2016
1 parent 0749b04 commit a031f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/land_detector/land_detector_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a031f6e

Please sign in to comment.