Selaa lähdekoodia

Simply run M31 at the end of an SD print

Scott Lahteine 8 vuotta sitten
vanhempi
commit
34da77dad3
2 muutettua tiedostoa jossa 3 lisäystä ja 9 poistoa
  1. 0
    6
      Marlin/Marlin_main.cpp
  2. 3
    3
      Marlin/cardreader.cpp

+ 0
- 6
Marlin/Marlin_main.cpp Näytä tiedosto

@@ -1170,12 +1170,6 @@ inline void get_serial_commands() {
1170 1170
         if (card_eof) {
1171 1171
           SERIAL_PROTOCOLLNPGM(MSG_FILE_PRINTED);
1172 1172
           print_job_timer.stop();
1173
-          char time[30];
1174
-          millis_t t = print_job_timer.duration();
1175
-          sprintf_P(time, PSTR("%i " MSG_END_HOUR " %i " MSG_END_MINUTE), int(t / 60 / 60), int(t / 60) % 60);
1176
-          SERIAL_ECHO_START;
1177
-          SERIAL_ECHOLN(time);
1178
-          lcd_setstatus(time, true);
1179 1173
           card.printingHasFinished();
1180 1174
           card.checkautostart(true);
1181 1175
         }

+ 3
- 3
Marlin/cardreader.cpp Näytä tiedosto

@@ -602,19 +602,19 @@ void CardReader::updir() {
602 602
 
603 603
 void CardReader::printingHasFinished() {
604 604
   stepper.synchronize();
605
+  file.close();
605 606
   if (file_subcall_ctr > 0) { // Heading up to a parent file that called current as a procedure.
606
-    file.close();
607 607
     file_subcall_ctr--;
608 608
     openFile(proc_filenames[file_subcall_ctr], true, true);
609 609
     setIndex(filespos[file_subcall_ctr]);
610 610
     startFileprint();
611 611
   }
612 612
   else {
613
-    file.close();
614 613
     sdprinting = false;
615 614
     if (SD_FINISHED_STEPPERRELEASE)
616 615
       enqueue_and_echo_commands_P(PSTR(SD_FINISHED_RELEASECOMMAND));
617
-    thermalManager.autotempShutdown();
616
+    print_job_timer.stop();
617
+    enqueue_and_echo_commands_P(PSTR("M31"));
618 618
   }
619 619
 }
620 620
 

Loading…
Peruuta
Tallenna