From 1f11008dc856d50c730f09e63dae1d69daba6e6f Mon Sep 17 00:00:00 2001 From: midopple Date: Wed, 19 Sep 2012 19:47:38 +0200 Subject: =?UTF-8?q?Change=20max=20overshoot=20for=20Autotune=20to=2055?= =?UTF-8?q?=C2=B0C=20If=20Temperature=20is=20higher=20then=20255=20=C2=B0C?= =?UTF-8?q?=20stop=20Autotune?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sprinter/heater.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.1