made Logs dump with dump 0 or -1

This commit is contained in:
Jason Short 2011-11-27 19:17:04 -08:00
parent 2e0b55d887
commit ab183e54a0
1 changed files with 13 additions and 13 deletions

View File

@ -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);