Add heating statis messages to Touchscreen.

This commit is contained in:
Knutwurst
2020-06-04 18:56:55 +02:00
parent 33c0247347
commit 680426254d

View File

@@ -43,7 +43,10 @@
#include "../../feature/leds/leds.h"
#endif
#include "../../MarlinCore.h" // for wait_for_heatup, idle, startOrResumeJob
#if ENABLED(ANYCUBIC_TOUCHSCREEN)
#include "../../lcd/anycubic_touchscreen.h"
#endif
#include "../../MarlinCore.h" // for wait_for_heatup and idle()
/**
* M140: Set bed temperature
@@ -80,9 +83,15 @@ void GcodeSuite::M190() {
}
else return;
#ifdef ANYCUBIC_TOUCHSCREEN
AnycubicTouchscreen.BedHeatingStart();
#endif
ui.set_status_P(thermalManager.isHeatingBed() ? GET_TEXT(MSG_BED_HEATING) : GET_TEXT(MSG_BED_COOLING));
thermalManager.wait_for_bed(no_wait_for_cooling);
//SERIAL_FLUSH();
}
#endif // HAS_HEATED_BED