From 92418e9d1b5c226f8c5cca74e64c0ad7094b8997 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Thu, 2 Jun 2022 23:33:21 +0200 Subject: [PATCH] Do not perform PID management while autotune is running --- Firmware/temperature.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 98fcc4ee8..bfb4b74ad 100755 --- a/Firmware/temperature.cpp +++ b/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)