Переглянути джерело

Merge pull request #8587 from AnHardt/2_Fix_WDTO_during_long_DELTA_moves

[2.0.x] Fix WDTO during long delta moves
Scott Lahteine 7 роки тому
джерело
коміт
a8aa43ce2d
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 8 додано та 0 видалено
  1. 8
    0
      Marlin/src/module/motion.cpp

+ 8
- 0
Marlin/src/module/motion.cpp Переглянути файл

594
 
594
 
595
     // Calculate and execute the segments
595
     // Calculate and execute the segments
596
     for (uint16_t s = segments + 1; --s;) {
596
     for (uint16_t s = segments + 1; --s;) {
597
+
598
+      static millis_t next_idle_ms = millis() + 200UL;
599
+      thermalManager.manage_heater();  // This returns immediately if not really needed.
600
+      if (ELAPSED(millis(), next_idle_ms)) {
601
+        next_idle_ms = millis() + 200UL;
602
+        idle();
603
+      }
604
+
597
       LOOP_XYZE(i) raw[i] += segment_distance[i];
605
       LOOP_XYZE(i) raw[i] += segment_distance[i];
598
       #if ENABLED(DELTA)
606
       #if ENABLED(DELTA)
599
         DELTA_RAW_IK(); // Delta can inline its kinematics
607
         DELTA_RAW_IK(); // Delta can inline its kinematics

Завантаження…
Відмінити
Зберегти