Bläddra i källkod

Merge pull request #1505 from thinkyhead/issue_1499

Bed leveling probe behavior issue?
Scott Lahteine 9 år sedan
förälder
incheckning
08c236059e
1 ändrade filer med 17 tillägg och 22 borttagningar
  1. 17
    22
      Marlin/Marlin_main.cpp

+ 17
- 22
Marlin/Marlin_main.cpp Visa fil

@@ -1851,30 +1851,25 @@ void process_commands()
1851 1851
             // Probe at 3 arbitrary points
1852 1852
             // Enhanced G29
1853 1853
             
1854
-            float z_at_pt_1,z_at_pt_2,z_at_pt_3;
1854
+            float z_at_pt_1, z_at_pt_2, z_at_pt_3;
1855 1855
             
1856
-            if (code_seen('E') || code_seen('e') )
1857
-               {
1858
-               // probe 1               
1859
-                z_at_pt_1 = probe_pt(ABL_PROBE_PT_1_X, ABL_PROBE_PT_1_Y, Z_RAISE_BEFORE_PROBING,1);
1860
-               // probe 2
1861
-                z_at_pt_2 = probe_pt(ABL_PROBE_PT_2_X, ABL_PROBE_PT_2_Y, current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS,2);
1862
-               // probe 3
1863
-                z_at_pt_3 = probe_pt(ABL_PROBE_PT_3_X, ABL_PROBE_PT_3_Y, current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS,3); 
1864
-               }
1865
-               else 
1866
-               {
1867
-	        // probe 1
1868
-	        float z_at_pt_1 = probe_pt(ABL_PROBE_PT_1_X, ABL_PROBE_PT_1_Y, Z_RAISE_BEFORE_PROBING);
1869
-
1870
-                // probe 2
1871
-                float z_at_pt_2 = probe_pt(ABL_PROBE_PT_2_X, ABL_PROBE_PT_2_Y, current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS);
1872
-
1873
-                // probe 3
1874
-                float z_at_pt_3 = probe_pt(ABL_PROBE_PT_3_X, ABL_PROBE_PT_3_Y, current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS);
1875
-               }
1856
+            if (code_seen('E') || code_seen('e')) {
1857
+              // probe 1               
1858
+              z_at_pt_1 = probe_pt(ABL_PROBE_PT_1_X, ABL_PROBE_PT_1_Y, Z_RAISE_BEFORE_PROBING,1);
1859
+              // probe 2
1860
+              z_at_pt_2 = probe_pt(ABL_PROBE_PT_2_X, ABL_PROBE_PT_2_Y, current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS,2);
1861
+              // probe 3
1862
+              z_at_pt_3 = probe_pt(ABL_PROBE_PT_3_X, ABL_PROBE_PT_3_Y, current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS,3); 
1863
+            }
1864
+            else {
1865
+              // probe 1
1866
+              z_at_pt_1 = probe_pt(ABL_PROBE_PT_1_X, ABL_PROBE_PT_1_Y, Z_RAISE_BEFORE_PROBING);
1867
+              // probe 2
1868
+              z_at_pt_2 = probe_pt(ABL_PROBE_PT_2_X, ABL_PROBE_PT_2_Y, current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS);
1869
+              // probe 3
1870
+              z_at_pt_3 = probe_pt(ABL_PROBE_PT_3_X, ABL_PROBE_PT_3_Y, current_position[Z_AXIS] + Z_RAISE_BETWEEN_PROBINGS);
1871
+            }
1876 1872
             clean_up_after_endstop_move();
1877
-
1878 1873
             set_bed_level_equation_3pts(z_at_pt_1, z_at_pt_2, z_at_pt_3);
1879 1874
 
1880 1875
 

Laddar…
Avbryt
Spara