summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Sprinter/heater.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Sprinter/heater.cpp b/Sprinter/heater.cpp
index 119e547..027d057 100644
--- a/Sprinter/heater.cpp
+++ b/Sprinter/heater.cpp
@@ -466,9 +466,10 @@ void PID_autotune(int PIDAT_test_temp)
#endif
}
- if(PIDAT_input > (PIDAT_test_temp + 25))
+ if((PIDAT_input > (PIDAT_test_temp + 55)) || (PIDAT_input > 255))
{
showString(PSTR("PID Autotune failed! Temperature to high\r\n"));
+ target_temp = 0;
return;
}