Revert "HeaterCheck is now only displayed one single time at startup"

This reverts commit 8aa79ade6a.
This commit is contained in:
Knutwurst
2021-09-13 22:41:58 +02:00
parent 8aa79ade6a
commit 2e1c2343cb

View File

@@ -250,7 +250,6 @@ void AnycubicTouchscreenClass::Setup()
#endif
setup_OutageTestPin();
CheckHeaterError();
}
#if ENABLED(KNUTWURST_MEGA_P_LASER)
@@ -1288,13 +1287,21 @@ void AnycubicTouchscreenClass::CheckHeaterError()
{
if ((thermalManager.degHotend(0) < 5) || (thermalManager.degHotend(0) > 300))
{
#ifndef ANYCUBIC_TFT_DEBUG
HARDWARE_SERIAL_PROTOCOLPGM("J10"); // J10 Hotend temperature abnormal
HARDWARE_SERIAL_ENTER();
#endif
#ifdef ANYCUBIC_TFT_DEBUG
SERIAL_ECHOLNPGM("TFT Serial Debug: Hotend temperature abnormal... J20");
#endif
if (HeaterCheckCount > 60000)
{
HeaterCheckCount = 0;
#ifndef ANYCUBIC_TFT_DEBUG
HARDWARE_SERIAL_PROTOCOLPGM("J10"); // J10 Hotend temperature abnormal
HARDWARE_SERIAL_ENTER();
#endif
#ifdef ANYCUBIC_TFT_DEBUG
SERIAL_ECHOLNPGM("TFT Serial Debug: Hotend temperature abnormal... J20");
#endif
} else {
HeaterCheckCount++;
}
} else {
HeaterCheckCount = 0;
}
}
@@ -2438,6 +2445,7 @@ SERIAL_PROTOCOLLN(cvalue);
void AnycubicTouchscreenClass::CommandScan()
{
CheckHeaterError();
CheckSDCardChange();
StateHandler();