|
@@ -1487,7 +1487,7 @@ inline void set_destination_to_current() { memcpy(destination, current_position,
|
1487
|
1487
|
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);
|
1488
|
1488
|
set_current_to_destination();
|
1489
|
1489
|
}
|
1490
|
|
-#endif
|
|
1490
|
+#endif // IS_KINEMATIC
|
1491
|
1491
|
|
1492
|
1492
|
/**
|
1493
|
1493
|
* Plan a move to (X, Y, Z) and set the current_position
|
|
@@ -1554,16 +1554,12 @@ void do_blocking_move_to(const float &x, const float &y, const float &z, const f
|
1554
|
1554
|
#endif
|
1555
|
1555
|
}
|
1556
|
1556
|
|
1557
|
|
- #if ENABLED(DEBUG_LEVELING_FEATURE)
|
1558
|
|
- if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("<<< do_blocking_move_to");
|
1559
|
|
- #endif
|
1560
|
|
-
|
1561
|
1557
|
#elif IS_SCARA
|
1562
|
1558
|
|
1563
|
1559
|
set_destination_to_current();
|
1564
|
1560
|
|
1565
|
1561
|
// If Z needs to raise, do it before moving XY
|
1566
|
|
- if (current_position[Z_AXIS] < z) {
|
|
1562
|
+ if (destination[Z_AXIS] < z) {
|
1567
|
1563
|
destination[Z_AXIS] = z;
|
1568
|
1564
|
prepare_uninterpolated_move_to_destination(fr_mm_s ? fr_mm_s : homing_feedrate_mm_s[Z_AXIS]);
|
1569
|
1565
|
}
|
|
@@ -1573,7 +1569,7 @@ void do_blocking_move_to(const float &x, const float &y, const float &z, const f
|
1573
|
1569
|
prepare_uninterpolated_move_to_destination(fr_mm_s ? fr_mm_s : XY_PROBE_FEEDRATE_MM_S);
|
1574
|
1570
|
|
1575
|
1571
|
// If Z needs to lower, do it after moving XY
|
1576
|
|
- if (current_position[Z_AXIS] > z) {
|
|
1572
|
+ if (destination[Z_AXIS] > z) {
|
1577
|
1573
|
destination[Z_AXIS] = z;
|
1578
|
1574
|
prepare_uninterpolated_move_to_destination(fr_mm_s ? fr_mm_s : homing_feedrate_mm_s[Z_AXIS]);
|
1579
|
1575
|
}
|
|
@@ -1604,6 +1600,10 @@ void do_blocking_move_to(const float &x, const float &y, const float &z, const f
|
1604
|
1600
|
stepper.synchronize();
|
1605
|
1601
|
|
1606
|
1602
|
feedrate_mm_s = old_feedrate_mm_s;
|
|
1603
|
+
|
|
1604
|
+ #if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
1605
|
+ if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("<<< do_blocking_move_to");
|
|
1606
|
+ #endif
|
1607
|
1607
|
}
|
1608
|
1608
|
void do_blocking_move_to_x(const float &x, const float &fr_mm_s/*=0.0*/) {
|
1609
|
1609
|
do_blocking_move_to(x, current_position[Y_AXIS], current_position[Z_AXIS], fr_mm_s);
|
|
@@ -2846,7 +2846,8 @@ inline void gcode_G4() {
|
2846
|
2846
|
|
2847
|
2847
|
// Move all carriages together linearly until an endstop is hit.
|
2848
|
2848
|
current_position[X_AXIS] = current_position[Y_AXIS] = current_position[Z_AXIS] = (Z_MAX_LENGTH + 10);
|
2849
|
|
- planner.buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], homing_feedrate_mm_s[X_AXIS], active_extruder);
|
|
2849
|
+ feedrate_mm_s = homing_feedrate_mm_s[X_AXIS];
|
|
2850
|
+ line_to_current_position();
|
2850
|
2851
|
stepper.synchronize();
|
2851
|
2852
|
endstops.hit_on_purpose(); // clear endstop hit flags
|
2852
|
2853
|
|
|
@@ -9015,7 +9016,7 @@ void stop() {
|
9015
|
9016
|
*/
|
9016
|
9017
|
void setup() {
|
9017
|
9018
|
|
9018
|
|
- #ifdef DISABLE_JTAG
|
|
9019
|
+ #if ENABLED(DISABLE_JTAG)
|
9019
|
9020
|
// Disable JTAG on AT90USB chips to free up pins for IO
|
9020
|
9021
|
MCUCR = 0x80;
|
9021
|
9022
|
MCUCR = 0x80;
|