Update PIDThread.cpp
This commit is contained in:
committed by
Ben V. Brown
parent
cfa2591db3
commit
8f05433be2
@@ -248,6 +248,11 @@ void detectThermalRunaway(const TemperatureType_t currentTipTempInC, const uint3
|
|||||||
|
|
||||||
static bool haveSeenDelta = false;
|
static bool haveSeenDelta = false;
|
||||||
|
|
||||||
|
// Check for readings being pegged at the top of the ADC while the heater is off
|
||||||
|
if (!thisCycleIsHeating && (getTipRawTemp(0) > (0x7FFF - 16))) {
|
||||||
|
heaterThermalRunaway = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (haveSeenDelta) {
|
if (haveSeenDelta) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user