diff --git a/Marlin/src/gcode/temp/M140_M190.cpp b/Marlin/src/gcode/temp/M140_M190.cpp index 2da43870..78d71302 100755 --- a/Marlin/src/gcode/temp/M140_M190.cpp +++ b/Marlin/src/gcode/temp/M140_M190.cpp @@ -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