Browse Source

Move ExtUI ABL mesh edit, limit to bilinear (#20381)

* Move ExtUI call

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
Co-authored-by: Victor Mateus Oliveira <rhapsodyv@gmail.com>
Co-authored-by: Sebastiaan Dammann <sebastiaandammann@outlook.com>
InsanityAutomation 4 years ago
parent
commit
3404cb1fc4
No account linked to committer's email address
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/src/gcode/bedlevel/abl/G29.cpp

+ 4
- 2
Marlin/src/gcode/bedlevel/abl/G29.cpp View File

@@ -177,8 +177,6 @@ G29_TYPE GcodeSuite::G29() {
177 177
     if (DISABLED(PROBE_MANUALLY) && seenQ) G29_RETURN(false);
178 178
   #endif
179 179
 
180
-  TERN_(EXTENSIBLE_UI, ExtUI::onMeshLevelingStart());
181
-
182 180
   const bool seenA = TERN0(PROBE_MANUALLY, parser.seen('A')),
183 181
          no_action = seenA || seenQ,
184 182
               faux = ENABLED(DEBUG_LEVELING_FEATURE) && DISABLED(PROBE_MANUALLY) ? parser.boolval('C') : no_action;
@@ -399,6 +397,10 @@ G29_TYPE GcodeSuite::G29() {
399 397
       points[0].z = points[1].z = points[2].z = 0;  // Probe at 3 arbitrary points
400 398
     #endif
401 399
 
400
+    #if BOTH(AUTO_BED_LEVELING_BILINEAR, EXTENSIBLE_UI)
401
+      ExtUI::onMeshLevelingStart();
402
+    #endif
403
+
402 404
     if (!faux) remember_feedrate_scaling_off();
403 405
 
404 406
     // Disable auto bed leveling during G29.

Loading…
Cancel
Save