Move shared code to wait_for_bed_heating

This commit is contained in:
Scott Lahteine
2020-03-04 12:50:43 -06:00
parent ab1863ac48
commit 7709261ea9
5 changed files with 14 additions and 24 deletions

View File

@ -3361,6 +3361,15 @@ void Temperature::tick() {
return wait_for_heatup;
}
void Temperature::wait_for_bed_heating() {
if (isHeatingBed()) {
SERIAL_ECHOLNPGM("Wait for bed heating...");
LCD_MESSAGEPGM(MSG_BED_HEATING);
wait_for_bed();
ui.reset_status();
}
}
#endif // HAS_HEATED_BED
#if HAS_HEATED_CHAMBER