error on comparison operator

This commit is contained in:
Jason Short 2012-01-20 21:48:59 -08:00
parent 5180592913
commit 5ac26a5500
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ static void update_commands()
//uint8_t tmp = g.command_index.get(); //uint8_t tmp = g.command_index.get();
//Serial.printf("command_index %u \n", tmp); //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; return;
if(command_nav_queue.id == NO_COMMAND){ if(command_nav_queue.id == NO_COMMAND){