From a087d84734f43b08ff0511394d1eba23cdc89500 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Fri, 20 Jan 2012 21:48:59 -0800 Subject: [PATCH] error on comparison operator --- ArduCopter/commands_process.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/commands_process.pde b/ArduCopter/commands_process.pde index c69c664eca..929c5c35b6 100644 --- a/ArduCopter/commands_process.pde +++ b/ArduCopter/commands_process.pde @@ -39,7 +39,7 @@ static void update_commands() //uint8_t tmp = g.command_index.get(); //Serial.printf("command_index %u \n", tmp); - if (g.command_total <= 1 || g.command_index > 127) + if (g.command_total <= 1 || g.command_index >= 127) return; if(command_nav_queue.id == NO_COMMAND){