mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 23:30:16 +00:00
Fix delayed_move_time elapsed test
This commit is contained in:
parent
b1f0671541
commit
bb747bcd62
@ -655,7 +655,7 @@ inline void manage_inactivity(const bool ignore_stepper_queue=false) {
|
|||||||
|
|
||||||
#if ENABLED(DUAL_X_CARRIAGE)
|
#if ENABLED(DUAL_X_CARRIAGE)
|
||||||
// handle delayed move timeout
|
// 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
|
// travel moves have been received so enact them
|
||||||
delayed_move_time = 0xFFFFFFFFUL; // force moves to be done
|
delayed_move_time = 0xFFFFFFFFUL; // force moves to be done
|
||||||
destination = current_position;
|
destination = current_position;
|
||||||
|
@ -988,7 +988,7 @@ FORCE_INLINE void segment_idle(millis_t &next_idle_ms) {
|
|||||||
if (delayed_move_time != 0xFFFFFFFFUL) {
|
if (delayed_move_time != 0xFFFFFFFFUL) {
|
||||||
current_position = destination;
|
current_position = destination;
|
||||||
NOLESS(raised_parked_position.z, destination.z);
|
NOLESS(raised_parked_position.z, destination.z);
|
||||||
delayed_move_time = millis();
|
delayed_move_time = millis() + 1000UL;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user