Add setSoftEndstopState to TFT print and stop functions.

This commit is contained in:
Knutwurst
2023-06-07 08:49:56 +02:00
parent 442f66c145
commit acee1592c9

View File

@@ -197,6 +197,7 @@
SERIAL_ECHOPGM(" "); SERIAL_ECHOPGM(" ");
SERIAL_ECHOLN(currentFileOrDirectory); SERIAL_ECHOLN(currentFileOrDirectory);
#endif #endif
setSoftEndstopState(false);
mediaPrintingState = AMPRINTSTATE_PRINTING; mediaPrintingState = AMPRINTSTATE_PRINTING;
mediaPauseState = AMPAUSESTATE_NOT_PAUSED; mediaPauseState = AMPAUSESTATE_NOT_PAUSED;
printFile(currentFileOrDirectory); printFile(currentFileOrDirectory);
@@ -219,6 +220,7 @@
inline void AnycubicTouchscreenClass::StopPrint() { inline void AnycubicTouchscreenClass::StopPrint() {
#if ENABLED(SDSUPPORT) #if ENABLED(SDSUPPORT)
setSoftEndstopState(false);
mediaPrintingState = AMPRINTSTATE_STOP_REQUESTED; mediaPrintingState = AMPRINTSTATE_STOP_REQUESTED;
mediaPauseState = AMPAUSESTATE_NOT_PAUSED; mediaPauseState = AMPAUSESTATE_NOT_PAUSED;
SENDLINE_DBG_PGM("J16", "TFT Serial Debug: SD print stop called... J16"); SENDLINE_DBG_PGM("J16", "TFT Serial Debug: SD print stop called... J16");