Suspend auto-report during UBL map output

This commit is contained in:
Scott Lahteine 2018-03-07 02:00:19 -06:00
parent eb212ae073
commit 1d604be671

View File

@ -195,6 +195,10 @@
// 2 : disply of the map data on a RepRap Graphical LCD Panel // 2 : disply of the map data on a RepRap Graphical LCD Panel
void unified_bed_leveling::display_map(const int map_type) { void unified_bed_leveling::display_map(const int map_type) {
#if HAS_AUTO_REPORTING
suspend_auto_report = true;
#endif
constexpr uint8_t spaces = 8 * (GRID_MAX_POINTS_X - 2); constexpr uint8_t spaces = 8 * (GRID_MAX_POINTS_X - 2);
SERIAL_PROTOCOLPGM("\nBed Topography Report"); SERIAL_PROTOCOLPGM("\nBed Topography Report");
@ -259,6 +263,10 @@
serial_echo_xy(GRID_MAX_POINTS_X - 1, 0); serial_echo_xy(GRID_MAX_POINTS_X - 1, 0);
SERIAL_EOL(); SERIAL_EOL();
} }
#if HAS_AUTO_REPORTING
suspend_auto_report = false;
#endif
} }
bool unified_bed_leveling::sanity_check() { bool unified_bed_leveling::sanity_check() {