|
@@ -596,7 +596,7 @@ void process_next_command();
|
596
|
596
|
void prepare_move_to_destination();
|
597
|
597
|
|
598
|
598
|
void get_cartesian_from_steppers();
|
599
|
|
-void set_current_from_steppers_for_axis(AxisEnum axis);
|
|
599
|
+void set_current_from_steppers_for_axis(const AxisEnum axis);
|
600
|
600
|
|
601
|
601
|
#if ENABLED(ARC_SUPPORT)
|
602
|
602
|
void plan_arc(float target[NUM_AXIS], float* offset, uint8_t clockwise);
|
|
@@ -7898,7 +7898,7 @@ void get_cartesian_from_steppers() {
|
7898
|
7898
|
*
|
7899
|
7899
|
* << INCOMPLETE! Still needs to unapply leveling! >>
|
7900
|
7900
|
*/
|
7901
|
|
-void set_current_from_steppers_for_axis(AxisEnum axis) {
|
|
7901
|
+void set_current_from_steppers_for_axis(const AxisEnum axis) {
|
7902
|
7902
|
#if ENABLED(AUTO_BED_LEVELING_LINEAR)
|
7903
|
7903
|
vector_3 pos = untilted_stepper_position();
|
7904
|
7904
|
current_position[axis] = axis == X_AXIS ? pos.x : axis == Y_AXIS ? pos.y : pos.z;
|