Suspend auto-report during UBL map output

This commit is contained in:
Scott Lahteine 2018-03-07 00:53:30 -06:00
parent e7d519c898
commit dc40b3ec00

View File

@ -175,6 +175,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");
@ -242,6 +246,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() {