From 76cd645fff04bef69b427b74b4791da471beaf70 Mon Sep 17 00:00:00 2001 From: jasonshort Date: Fri, 8 Apr 2011 19:15:27 +0000 Subject: [PATCH] fixed typo git-svn-id: https://arducopter.googlecode.com/svn/trunk@1857 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/commands_logic.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopterMega/commands_logic.pde b/ArduCopterMega/commands_logic.pde index 114d1013c5..5c6a4aa610 100644 --- a/ArduCopterMega/commands_logic.pde +++ b/ArduCopterMega/commands_logic.pde @@ -327,14 +327,14 @@ bool verify_nav_wp() update_crosstrack(); if (next_WP.options & WP_OPTION_ALT_REQUIRED){ - byte = current_loc.alt > next_WP.alt; + alt = (current_loc.alt > next_WP.alt); } if ((wp_distance > 0) && (wp_distance <= g.waypoint_radius)) { //SendDebug("MSG REACHED_WAYPOINT #"); //SendDebugln(command_must_index,DEC); - if (alt){ + if (alt == true){ char message[30]; sprintf(message,"Reached Waypoint #%i",command_must_index); gcs.send_text(SEVERITY_LOW,message);