Browse Source

Suspend auto-report during UBL map output

Scott Lahteine 7 years ago
parent
commit
1d604be671
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      Marlin/src/feature/bedlevel/ubl/ubl.cpp

+ 8
- 0
Marlin/src/feature/bedlevel/ubl/ubl.cpp View File

@@ -195,6 +195,10 @@
195 195
   // 2 : disply of the map data on a RepRap Graphical LCD Panel
196 196
 
197 197
   void unified_bed_leveling::display_map(const int map_type) {
198
+    #if HAS_AUTO_REPORTING
199
+      suspend_auto_report = true;
200
+    #endif
201
+
198 202
     constexpr uint8_t spaces = 8 * (GRID_MAX_POINTS_X - 2);
199 203
 
200 204
     SERIAL_PROTOCOLPGM("\nBed Topography Report");
@@ -259,6 +263,10 @@
259 263
       serial_echo_xy(GRID_MAX_POINTS_X - 1, 0);
260 264
       SERIAL_EOL();
261 265
     }
266
+
267
+    #if HAS_AUTO_REPORTING
268
+      suspend_auto_report = false;
269
+    #endif
262 270
   }
263 271
 
264 272
   bool unified_bed_leveling::sanity_check() {

Loading…
Cancel
Save