Sfoglia il codice sorgente

Skip raw moves to current position

Scott Lahteine 8 anni fa
parent
commit
8b399610fb
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7
    0
      Marlin/Marlin_main.cpp

+ 7
- 0
Marlin/Marlin_main.cpp Vedi File

@@ -1482,6 +1482,13 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
1482 1482
     #if ENABLED(DEBUG_LEVELING_FEATURE)
1483 1483
       if (DEBUGGING(LEVELING)) DEBUG_POS("prepare_uninterpolated_move_to_destination", destination);
1484 1484
     #endif
1485
+
1486
+    if ( current_position[X_AXIS] == destination[X_AXIS]
1487
+      && current_position[Y_AXIS] == destination[Y_AXIS]
1488
+      && current_position[Z_AXIS] == destination[Z_AXIS]
1489
+      && current_position[E_AXIS] == destination[E_AXIS]
1490
+    ) return;
1491
+
1485 1492
     refresh_cmd_timeout();
1486 1493
     inverse_kinematics(destination);
1487 1494
     planner.buffer_line(delta[A_AXIS], delta[B_AXIS], delta[C_AXIS], destination[E_AXIS], MMS_SCALED(fr_mm_s ? fr_mm_s : feedrate_mm_s), active_extruder);

Loading…
Annulla
Salva