Added cast for comparison

This commit is contained in:
Jason Short 2012-01-20 21:49:30 -08:00
parent 525f7cd40f
commit 2fa8a343ac
1 changed files with 1 additions and 1 deletions

View File

@ -1707,7 +1707,7 @@ static void update_navigation()
}
// 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
auto_land_timer = 0;
set_mode(LAND);