Skip to content

Commit

Permalink
Refresh previous_cmd_ms during run_z_probe()
Browse files Browse the repository at this point in the history
Refresh previous_cmd_ms during run_z_probe() to prevent:
stepper shutdown for expired DEFAULT_STEPPER_DEACTIVE_TIME
and extrudes for expired EXTRUDER_RUNOUT_SECONDS
(https://github.com/MarlinFirmware/MarlinDev/issues/238)
  • Loading branch information
AnHardt committed Feb 28, 2016
1 parent 4b02f33 commit 1c889cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,8 @@ static void setup_for_endstop_move() {

static void run_z_probe() {

refresh_cmd_timeout(); // to prevent stepper_inactive_time from running out and EXTRUDER_RUNOUT_PREVENT from extruding

#if ENABLED(DELTA)

float start_z = current_position[Z_AXIS];
Expand Down

0 comments on commit 1c889cd

Please sign in to comment.