瀏覽代碼

Comments in Marlin_main.cpp

Scott Lahteine 10 年之前
父節點
當前提交
c966aa26ff
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8
    6
      Marlin/Marlin_main.cpp

+ 8
- 6
Marlin/Marlin_main.cpp 查看文件

@@ -1202,12 +1202,12 @@ static void setup_for_endstop_move() {
1202 1202
       plan_bed_level_matrix.set_to_identity();
1203 1203
       feedrate = homing_feedrate[Z_AXIS];
1204 1204
 
1205
-      // move down until you find the bed
1205
+      // Move down until the probe (or endstop?) is triggered
1206 1206
       float zPosition = -10;
1207 1207
       line_to_z(zPosition);
1208 1208
       st_synchronize();
1209 1209
 
1210
-      // we have to let the planner know where we are right now as it is not where we said to go.
1210
+      // Tell the planner where we ended up - Get this from the stepper handler
1211 1211
       zPosition = st_get_position_mm(Z_AXIS);
1212 1212
       plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], zPosition, current_position[E_AXIS]);
1213 1213
 
@@ -1410,7 +1410,7 @@ static void setup_for_endstop_move() {
1410 1410
           Stop();
1411 1411
         }
1412 1412
 
1413
-    #endif
1413
+    #endif // Z_PROBE_ALLEN_KEY
1414 1414
 
1415 1415
   }
1416 1416
 
@@ -4628,7 +4628,7 @@ inline void gcode_M400() { st_synchronize(); }
4628 4628
     stow_z_probe(false);
4629 4629
   }
4630 4630
 
4631
-#endif
4631
+#endif // ENABLE_AUTO_BED_LEVELING && (SERVO_ENDSTOPS || Z_PROBE_ALLEN_KEY) && !Z_PROBE_SLED
4632 4632
 
4633 4633
 #ifdef FILAMENT_SENSOR
4634 4634
 
@@ -4823,7 +4823,7 @@ inline void gcode_M503() {
4823 4823
     if (code_seen('Z')) {
4824 4824
       value = code_value();
4825 4825
       if (Z_PROBE_OFFSET_RANGE_MIN <= value && value <= Z_PROBE_OFFSET_RANGE_MAX) {
4826
-        zprobe_zoffset = -value; // compare w/ line 278 of configuration_store.cpp
4826
+        zprobe_zoffset = -value;
4827 4827
         SERIAL_ECHO_START;
4828 4828
         SERIAL_ECHOLNPGM(MSG_ZPROBE_ZOFFSET " " MSG_OK);
4829 4829
         SERIAL_EOL;
@@ -5078,6 +5078,8 @@ inline void gcode_M999() {
5078 5078
 
5079 5079
 /**
5080 5080
  * T0-T3: Switch tool, usually switching extruders
5081
+ *
5082
+ *   F[mm/min] Set the movement feedrate
5081 5083
  */
5082 5084
 inline void gcode_T() {
5083 5085
   int tmp_extruder = code_value();
@@ -5600,7 +5602,7 @@ void process_next_command() {
5600 5602
         case 402:
5601 5603
           gcode_M402();
5602 5604
           break;
5603
-      #endif
5605
+      #endif // ENABLE_AUTO_BED_LEVELING && (SERVO_ENDSTOPS || Z_PROBE_ALLEN_KEY) && !Z_PROBE_SLED
5604 5606
 
5605 5607
       #ifdef FILAMENT_SENSOR
5606 5608
         case 404:  //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or display nominal filament width

Loading…
取消
儲存