Browse Source

Do not perform PID management while autotune is running

Yuri D'Elia 3 năm trước cách đây
mục cha
commit
92418e9d1b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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)