summaryrefslogtreecommitdiff
path: root/Sprinter
diff options
context:
space:
mode:
authormidopple <mdoppler@gmx.at>2012-09-19 19:47:38 +0200
committermidopple <mdoppler@gmx.at>2012-09-19 19:47:38 +0200
commit1f11008dc856d50c730f09e63dae1d69daba6e6f (patch)
treef36750cbd87fac2e6be1377c6f460e54170678e7 /Sprinter
parente206720abfb5d14ae7d5d3505e458cbdc6c87ae8 (diff)
Change max overshoot for Autotune to 55°C
If Temperature is higher then 255 °C stop Autotune
Diffstat (limited to 'Sprinter')
-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;
}