Browse Source

Fix some comments

Scott Lahteine 4 years ago
parent
commit
198b3ae0f8
2 changed files with 3 additions and 2 deletions
  1. 1
    0
      Marlin/src/gcode/calibrate/G28.cpp
  2. 2
    2
      Marlin/src/module/probe.cpp

+ 1
- 0
Marlin/src/gcode/calibrate/G28.cpp View File

246
     set_bed_leveling_enabled(false);
246
     set_bed_leveling_enabled(false);
247
   #endif
247
   #endif
248
 
248
 
249
+  // Reset to the XY plane
249
   TERN_(CNC_WORKSPACE_PLANES, workspace_plane = PLANE_XY);
250
   TERN_(CNC_WORKSPACE_PLANES, workspace_plane = PLANE_XY);
250
 
251
 
251
   // Count this command as movement / activity
252
   // Count this command as movement / activity

+ 2
- 2
Marlin/src/module/probe.cpp View File

548
   DEBUG_SECTION(log_probe, "Probe::run_z_probe", DEBUGGING(LEVELING));
548
   DEBUG_SECTION(log_probe, "Probe::run_z_probe", DEBUGGING(LEVELING));
549
 
549
 
550
   auto try_to_probe = [&](PGM_P const plbl, const float &z_probe_low_point, const feedRate_t fr_mm_s, const bool scheck, const float clearance) -> bool {
550
   auto try_to_probe = [&](PGM_P const plbl, const float &z_probe_low_point, const feedRate_t fr_mm_s, const bool scheck, const float clearance) -> bool {
551
-    // Do a first probe at the fast speed
552
-
551
+    // Tare the probe, if supported
553
     if (TERN0(PROBE_TARE, tare())) return true;
552
     if (TERN0(PROBE_TARE, tare())) return true;
554
 
553
 
554
+    // Do a first probe at the fast speed
555
     const bool probe_fail = probe_down_to_z(z_probe_low_point, fr_mm_s),            // No probe trigger?
555
     const bool probe_fail = probe_down_to_z(z_probe_low_point, fr_mm_s),            // No probe trigger?
556
                early_fail = (scheck && current_position.z > -offset.z + clearance); // Probe triggered too high?
556
                early_fail = (scheck && current_position.z > -offset.z + clearance); // Probe triggered too high?
557
     #if ENABLED(DEBUG_LEVELING_FEATURE)
557
     #if ENABLED(DEBUG_LEVELING_FEATURE)

Loading…
Cancel
Save