Copter: added cast to remove compiler warning

This commit is contained in:
tobias 2013-07-08 11:24:01 +10:00 committed by Andrew Tridgell
parent 4e7fea787b
commit 4e73cf810e
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ dump_log(uint8_t argc, const Menu::arg *argv)
cliSerial->printf_P(PSTR("dumping all\n"));
Log_Read(0, 1, 0);
return(-1);
} else if ((argc != 2) || (dump_log <= (last_log_num - DataFlash.get_num_logs())) || (dump_log > last_log_num)) {
} else if ((argc != 2) || ((uint16_t)dump_log <= (last_log_num - DataFlash.get_num_logs())) || (static_cast<uint16_t>(dump_log) > last_log_num)) {
cliSerial->printf_P(PSTR("bad log number\n"));
return(-1);
}