Skip to content

Commit

Permalink
Pause the print job timer while in M600
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Feb 15, 2017
1 parent bfe6f71 commit 4578c57
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7328,6 +7328,10 @@ inline void gcode_M503() {

busy_doing_M600 = true; // Stepper Motors can't timeout when this is set

// Pause the print job timer
bool job_running = print_job_timer.isRunning();
print_job_timer.pause();

// Show initial message and wait for synchronize steppers
lcd_filament_change_show_message(FILAMENT_CHANGE_MESSAGE_INIT);
stepper.synchronize();
Expand Down Expand Up @@ -7518,6 +7522,10 @@ inline void gcode_M503() {

// Show status screen
lcd_filament_change_show_message(FILAMENT_CHANGE_MESSAGE_STATUS);

// Resume the print job timer if it was running
if (job_running) print_job_timer.start();

busy_doing_M600 = false; // Allow Stepper Motors to be turned off during inactivity
}

Expand Down

0 comments on commit 4578c57

Please sign in to comment.