Copter: fixed a compiler warning

* removed useless comparison: if (int8_t t >= 255) ...
* revealed by -Wtype-limits
* saved 6 bytes
This commit is contained in:
Tobias 2013-05-24 11:50:11 +02:00 committed by Andrew Tridgell
parent c95072ea25
commit cf426fcb3e

View File

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