mirror of https://github.com/ArduPilot/ardupilot
made Logs dump with dump 0 or -1
This commit is contained in:
parent
b3bd4bd3c9
commit
cc1593d16d
|
@ -108,7 +108,7 @@ dump_log(uint8_t argc, const Menu::arg *argv)
|
||||||
// check that the requested log number can be read
|
// check that the requested log number can be read
|
||||||
dump_log = argv[1].i;
|
dump_log = argv[1].i;
|
||||||
last_log_num = g.log_last_filenumber;
|
last_log_num = g.log_last_filenumber;
|
||||||
if (dump_log == -1) {
|
if (dump_log <= 0) {
|
||||||
Serial.printf_P(PSTR("dumping all\n"));
|
Serial.printf_P(PSTR("dumping all\n"));
|
||||||
Log_Read(1, DF_LAST_PAGE);
|
Log_Read(1, DF_LAST_PAGE);
|
||||||
return(-1);
|
return(-1);
|
||||||
|
|
Loading…
Reference in New Issue