Skip to content

Commit a031f6e

Browse files
julianoesLorenzMeier
authored andcommitted
land_detector: fix timestamp type (#4710)
The overflow of the uint32_t lead to the land_detector start getting aborted.
1 parent 0749b04 commit a031f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/land_detector/land_detector_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static int land_detector_start(const char *mode)
140140
}
141141

142142
/* avoid memory fragmentation by not exiting start handler until the task has fully started */
143-
const uint32_t timeout = hrt_absolute_time() + 5000000; //5 second timeout
143+
const uint64_t timeout = hrt_absolute_time() + 5000000; //5 second timeout
144144

145145
/* avoid printing dots just yet and do one sleep before the first check */
146146
usleep(10000);

0 commit comments

Comments
 (0)