M48 menu item, result to status (#14772)

This commit is contained in:
Acenotass
2019-07-30 13:31:14 +06:00
committed by Scott Lahteine
parent e44fccf3d2
commit 659d06d9b9
4 changed files with 75 additions and 4 deletions

View File

@ -30,6 +30,10 @@
#include "../../feature/bedlevel/bedlevel.h"
#if HAS_SPI_LCD
#include "../../lcd/ultralcd.h"
#endif
#if HAS_LEVELING
#include "../../module/planner.h"
#endif
@ -246,6 +250,13 @@ void GcodeSuite::M48() {
SERIAL_ECHOLNPAIR_F("Standard Deviation: ", sigma, 6);
SERIAL_EOL();
#if HAS_SPI_LCD
// Display M48 results in the status bar
char sigma_str[8];
dtostrf(sigma, 2, 6, sigma_str);
ui.status_printf_P(0, PSTR(MSG_M48_DEVIATION ": %s"), sigma_str);
#endif
}
clean_up_after_endstop_or_probe_move();