Change max overshoot for Autotune to 55°C

If Temperature is higher then 255 °C stop Autotune
This commit is contained in:
midopple 2012-09-19 19:47:38 +02:00
parent e206720abf
commit 1f11008dc8

View file

@ -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;
}