mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 10:58:30 -04:00
Added cast for comparison
This commit is contained in:
parent
42b1362bba
commit
127544b833
@ -1707,7 +1707,7 @@ static void update_navigation()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Kick us out of loiter and begin landing if the auto_land_timer is set
|
// Kick us out of loiter and begin landing if the auto_land_timer is set
|
||||||
if(auto_land_timer != 0 && (millis() - auto_land_timer) > 20000){
|
if(auto_land_timer != 0 && (millis() - auto_land_timer) > (uint32_t)g.auto_land_timeout.get()){
|
||||||
// just to make sure we clear the timer
|
// just to make sure we clear the timer
|
||||||
auto_land_timer = 0;
|
auto_land_timer = 0;
|
||||||
set_mode(LAND);
|
set_mode(LAND);
|
||||||
|
Loading…
Reference in New Issue
Block a user