Merge pull request #8587 from AnHardt/2_Fix_WDTO_during_long_DELTA_moves
[2.0.x] Fix WDTO during long delta moves
This commit is contained in:
commit
a8aa43ce2d
1 changed files with 8 additions and 0 deletions
|
@ -594,6 +594,14 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
|
|||
|
||||
// Calculate and execute the segments
|
||||
for (uint16_t s = segments + 1; --s;) {
|
||||
|
||||
static millis_t next_idle_ms = millis() + 200UL;
|
||||
thermalManager.manage_heater(); // This returns immediately if not really needed.
|
||||
if (ELAPSED(millis(), next_idle_ms)) {
|
||||
next_idle_ms = millis() + 200UL;
|
||||
idle();
|
||||
}
|
||||
|
||||
LOOP_XYZE(i) raw[i] += segment_distance[i];
|
||||
#if ENABLED(DELTA)
|
||||
DELTA_RAW_IK(); // Delta can inline its kinematics
|
||||
|
|
Reference in a new issue