mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
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:
parent
c95072ea25
commit
cf426fcb3e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user