🚸 Clear "heating/cooling" message on temp reached

This commit is contained in:
Scott Lahteine
2022-03-25 17:35:00 -05:00
committed by Scott Lahteine
parent 9324132a40
commit 0e693854d0
6 changed files with 29 additions and 4 deletions

View File

@ -126,7 +126,7 @@ void GcodeSuite::M104_M109(const bool isM109) {
#endif
if (thermalManager.isHeatingHotend(target_extruder) || !no_wait_for_cooling)
thermalManager.set_heating_message(target_extruder);
thermalManager.set_heating_message(target_extruder, !isM109 && got_temp);
}
TERN_(AUTOTEMP, planner.autotemp_M104_M109());

View File

@ -89,6 +89,11 @@ void GcodeSuite::M140_M190(const bool isM190) {
if (isM190)
thermalManager.wait_for_bed(no_wait_for_cooling);
else
ui.set_status_reset_fn([]{
const celsius_t c = thermalManager.degTargetBed();
return c < 30 || thermalManager.degBedNear(c);
});
}
#endif // HAS_HEATED_BED