From c90d3126fa26b4065bad90347a3b9071129d5ace Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Sat, 7 Dec 2024 14:22:19 +1100 Subject: Update PIDThread.cpp --- source/Core/Threads/PIDThread.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Core/Threads/PIDThread.cpp b/source/Core/Threads/PIDThread.cpp index b928692c..c7b27118 100644 --- a/source/Core/Threads/PIDThread.cpp +++ b/source/Core/Threads/PIDThread.cpp @@ -248,6 +248,11 @@ void detectThermalRunaway(const TemperatureType_t currentTipTempInC, const uint3 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) { return; } -- cgit v1.2.3