Improve heating/cooling LCD messages (#10293)

This commit is contained in:
Marcio Teixeira
2018-04-04 17:29:27 -06:00
committed by Scott Lahteine
parent 21a47b50f4
commit 8bc93c6f2b
4 changed files with 53 additions and 31 deletions

View File

@ -61,7 +61,6 @@ void GcodeSuite::M140() {
void GcodeSuite::M190() {
if (DEBUGGING(DRYRUN)) return;
LCD_MESSAGEPGM(MSG_BED_HEATING);
const bool no_wait_for_cooling = parser.seenval('S');
if (no_wait_for_cooling || parser.seenval('R')) {
thermalManager.setTargetBed(parser.value_celsius());
@ -72,6 +71,8 @@ void GcodeSuite::M190() {
}
else return;
lcd_setstatusPGM(thermalManager.isHeatingBed() ? PSTR(MSG_BED_HEATING) : PSTR(MSG_BED_COOLING));
#if TEMP_BED_RESIDENCY_TIME > 0
millis_t residency_start_ms = 0;
// Loop until the temperature has stabilized