Browse Source

Do not perform PID management while autotune is running

Yuri D'Elia 2 years ago
parent
commit
92418e9d1b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Firmware/temperature.cpp

+ 2 - 1
Firmware/temperature.cpp

@@ -2187,7 +2187,8 @@ static void temp_mgr_isr()
 #endif
 
     // PID regulation
-    temp_mgr_pid();
+    if (pid_tuning_finished)
+        temp_mgr_pid();
 }
 
 ISR(TIMER5_COMPA_vect)