From 127544b8334786dacd883d97b8c890fbee1365cf Mon Sep 17 00:00:00 2001 From: Jason Short Date: Fri, 20 Jan 2012 21:49:30 -0800 Subject: [PATCH] Added cast for comparison --- ArduCopter/ArduCopter.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 011afb3c5c..36ca80a4dc 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -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);