ソースを参照

set_current_from_steppers_for_axis const arg

Scott Lahteine 8年前
コミット
18d8dd4c0f
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp ファイルの表示

596
 void prepare_move_to_destination();
596
 void prepare_move_to_destination();
597
 
597
 
598
 void get_cartesian_from_steppers();
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
 #if ENABLED(ARC_SUPPORT)
601
 #if ENABLED(ARC_SUPPORT)
602
   void plan_arc(float target[NUM_AXIS], float* offset, uint8_t clockwise);
602
   void plan_arc(float target[NUM_AXIS], float* offset, uint8_t clockwise);
7898
  *
7898
  *
7899
  * << INCOMPLETE! Still needs to unapply leveling! >>
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
   #if ENABLED(AUTO_BED_LEVELING_LINEAR)
7902
   #if ENABLED(AUTO_BED_LEVELING_LINEAR)
7903
     vector_3 pos = untilted_stepper_position();
7903
     vector_3 pos = untilted_stepper_position();
7904
     current_position[axis] = axis == X_AXIS ? pos.x : axis == Y_AXIS ? pos.y : pos.z;
7904
     current_position[axis] = axis == X_AXIS ? pos.x : axis == Y_AXIS ? pos.y : pos.z;

読み込み中…
キャンセル
保存