diff options
author | Ben V. Brown <[email protected]> | 2024-12-07 14:22:19 +1100 |
---|---|---|
committer | Ben V. Brown <[email protected]> | 2024-12-22 12:32:21 +1100 |
commit | 8f05433be231d290a567ec138af0ac378efab422 (patch) | |
tree | 55a16eeee0d4f70ed442ed08ef38b61f9f4fee5e /source/Core | |
parent | cfa2591db31bccefe72eb1798868de160680cd01 (diff) | |
download | IronOS-8f05433be231d290a567ec138af0ac378efab422.tar.gz IronOS-8f05433be231d290a567ec138af0ac378efab422.zip |
Update PIDThread.cpp
Diffstat (limited to 'source/Core')
-rw-r--r-- | source/Core/Threads/PIDThread.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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;
}
|