From f50fe7a77a283cf9b24bcf2c7bef6907d88bb44c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 24 Apr 2013 08:32:01 +1000 Subject: [PATCH] Rover: made a bit test clearer --- APMrover2/commands.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APMrover2/commands.pde b/APMrover2/commands.pde index 1e3c502324..47582f5926 100644 --- a/APMrover2/commands.pde +++ b/APMrover2/commands.pde @@ -72,7 +72,7 @@ static void set_cmd_with_index(struct Location temp, int i) // Set altitude options bitmask // XXX What is this trying to do? - if (temp.options & MASK_OPTIONS_RELATIVE_ALT && i != 0){ + if ((temp.options & MASK_OPTIONS_RELATIVE_ALT) && i != 0){ temp.options = MASK_OPTIONS_RELATIVE_ALT; } else { temp.options = 0;