From dad059737d34015eeae594211d17bf6250866c79 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 7 Jan 2023 16:11:30 +0100 Subject: [PATCH] Change PID temperature update (#17636) --- tasmota/tasmota_xdrv_driver/xdrv_49_pid.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_49_pid.ino b/tasmota/tasmota_xdrv_driver/xdrv_49_pid.ino index b2d48a2cd..8ef523f35 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_49_pid.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_49_pid.ino @@ -230,6 +230,9 @@ void PIDEverySecond() { // run the pid algorithm if Pid.run_pid_now is true or if the right number of seconds has passed or if too long has // elapsed since last pv update. If too long has elapsed the the algorithm will deal with that. if (Pid.run_pid_now || Pid.current_time_secs - Pid.last_pv_update_secs > Pid.max_interval || (Pid.update_secs != 0 && sec_counter++ % Pid.update_secs == 0)) { + if (!Pid.run_pid_now) { + PIDShowSensor(); // set actual process value + } PIDRun(); Pid.run_pid_now = false; }