Remove duplicate softEndstop setting. It's already set by the print timer.

This commit is contained in:
Knutwurst
2023-06-24 11:38:08 +02:00
parent 339125801e
commit 4d5ba3899b

View File

@@ -216,7 +216,6 @@ void AnycubicTouchscreenClass::StartPrint() {
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);
@@ -242,7 +241,6 @@ void AnycubicTouchscreenClass::PausePrint() {
inline void AnycubicTouchscreenClass::StopPrint() { inline void AnycubicTouchscreenClass::StopPrint() {
#if ENABLED(SDSUPPORT) #if ENABLED(SDSUPPORT)
setSoftEndstopState(true);
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");