Parcourir la source

Merge remote-tracking branch 'upstream/Development' into marlin_configurator

Scott Lahteine il y a 9 ans
Parent
révision
1600506545
1 fichiers modifiés avec 20 ajouts et 22 suppressions
  1. 20
    22
      Marlin/Marlin_main.cpp

+ 20
- 22
Marlin/Marlin_main.cpp Voir le fichier

@@ -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
 
@@ -3760,6 +3755,9 @@ case 404:  //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or disp
3760 3755
 
3761 3756
         RUNPLAN; //should do nothing
3762 3757
 
3758
+        //reset LCD alert message
3759
+    	lcd_reset_alert_level();
3760
+
3763 3761
         #ifdef DELTA
3764 3762
           calculate_delta(lastpos);
3765 3763
           plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], target[E_AXIS], fr60, active_extruder); //move xyz back

Chargement…
Annuler
Enregistrer