Revert "HeaterCheck is now only displayed one single time at startup"
This reverts commit 8aa79ade6a
.
This commit is contained in:
@@ -250,7 +250,6 @@ void AnycubicTouchscreenClass::Setup()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
setup_OutageTestPin();
|
setup_OutageTestPin();
|
||||||
CheckHeaterError();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ENABLED(KNUTWURST_MEGA_P_LASER)
|
#if ENABLED(KNUTWURST_MEGA_P_LASER)
|
||||||
@@ -1288,13 +1287,21 @@ void AnycubicTouchscreenClass::CheckHeaterError()
|
|||||||
{
|
{
|
||||||
if ((thermalManager.degHotend(0) < 5) || (thermalManager.degHotend(0) > 300))
|
if ((thermalManager.degHotend(0) < 5) || (thermalManager.degHotend(0) > 300))
|
||||||
{
|
{
|
||||||
#ifndef ANYCUBIC_TFT_DEBUG
|
if (HeaterCheckCount > 60000)
|
||||||
HARDWARE_SERIAL_PROTOCOLPGM("J10"); // J10 Hotend temperature abnormal
|
{
|
||||||
HARDWARE_SERIAL_ENTER();
|
HeaterCheckCount = 0;
|
||||||
#endif
|
#ifndef ANYCUBIC_TFT_DEBUG
|
||||||
#ifdef ANYCUBIC_TFT_DEBUG
|
HARDWARE_SERIAL_PROTOCOLPGM("J10"); // J10 Hotend temperature abnormal
|
||||||
SERIAL_ECHOLNPGM("TFT Serial Debug: Hotend temperature abnormal... J20");
|
HARDWARE_SERIAL_ENTER();
|
||||||
#endif
|
#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()
|
void AnycubicTouchscreenClass::CommandScan()
|
||||||
{
|
{
|
||||||
|
CheckHeaterError();
|
||||||
CheckSDCardChange();
|
CheckSDCardChange();
|
||||||
StateHandler();
|
StateHandler();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user