Przeglądaj źródła

Merge pull request #4516 from thinkyhead/rc_short_prints_quiet

Only report finished prints longer than 1 min
Scott Lahteine 8 lat temu
rodzic
commit
704ae1b737
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      Marlin/cardreader.cpp

+ 2
- 1
Marlin/cardreader.cpp Wyświetl plik

@@ -616,7 +616,8 @@ void CardReader::printingHasFinished() {
616 616
     if (SD_FINISHED_STEPPERRELEASE)
617 617
       enqueue_and_echo_commands_P(PSTR(SD_FINISHED_RELEASECOMMAND));
618 618
     print_job_timer.stop();
619
-    enqueue_and_echo_commands_P(PSTR("M31"));
619
+    if (print_job_timer.duration() > 60)
620
+      enqueue_and_echo_commands_P(PSTR("M31"));
620 621
   }
621 622
 }
622 623
 

Ładowanie…
Anuluj
Zapisz