From 343a682d22e019bb14aa3078f160782768361e43 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 24 Apr 2015 07:27:50 +1000 Subject: [PATCH] Plane: fixed conditional for 0 lat/lon --- ArduPlane/commands_logic.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/commands_logic.pde b/ArduPlane/commands_logic.pde index cbb679f938..d1b549145c 100644 --- a/ArduPlane/commands_logic.pde +++ b/ArduPlane/commands_logic.pde @@ -390,7 +390,7 @@ static void do_loiter_to_alt(const AP_Mission::Mission_Command& cmd) condition_value = next_WP_loc.alt; //are lat and lon 0? if so, don't change the current wp lat/lon - if (cmd.content.location.lat != 0 && cmd.content.location.lng != 0) { + if (cmd.content.location.lat != 0 || cmd.content.location.lng != 0) { set_next_WP(cmd.content.location); } //set loiter direction