Skip to content

Commit

Permalink
Fix IDEX reboot on travel after G28 X (MarlinFirmware#20654)
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanityAutomation authored and thinkyhead committed Apr 29, 2021
1 parent 5f856f6 commit 21f2ea1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Marlin/src/MarlinCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,11 +637,12 @@ inline void manage_inactivity(const bool ignore_stepper_queue=false) {

#if ENABLED(DUAL_X_CARRIAGE)
// handle delayed move timeout
if (delayed_move_time && ELAPSED(ms, delayed_move_time + 1000UL) && IsRunning()) {
if (delayed_move_time && ELAPSED(ms, delayed_move_time) && IsRunning()) {
// travel moves have been received so enact them
delayed_move_time = 0xFFFFFFFFUL; // force moves to be done
destination = current_position;
prepare_line_to_destination();
planner.synchronize();
}
#endif

Expand Down
3 changes: 1 addition & 2 deletions Marlin/src/module/motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ FORCE_INLINE void segment_idle(millis_t &next_idle_ms) {
if (delayed_move_time != 0xFFFFFFFFUL) {
current_position = destination;
NOLESS(raised_parked_position.z, destination.z);
delayed_move_time = millis();
delayed_move_time = millis() + 1000UL;
return true;
}
}
Expand All @@ -1016,7 +1016,6 @@ FORCE_INLINE void segment_idle(millis_t &next_idle_ms) {
line_to_current_position(fr_zfast);
}
}
planner.synchronize(); // paranoia
stepper.set_directions();

idex_set_parked(false);
Expand Down

0 comments on commit 21f2ea1

Please sign in to comment.