Fixed logging of old pid error

Sun, 15 Feb 2015 18:18:44 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 15 Feb 2015 18:18:44 +0100
changeset 308
876a8420c75a
parent 307
249e7d506069
child 309
c0dc3cd97fa4

Fixed logging of old pid error

thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- a/thermferm/thermferm.c	Sun Feb 15 18:06:21 2015 +0100
+++ b/thermferm/thermferm.c	Sun Feb 15 18:18:44 2015 +0100
@@ -1349,6 +1349,8 @@
 			    syslog(LOG_NOTICE, "sp=%.2f pv=%.2f err_old=%.2f err=%.2f P_err=%.2f I_err=%.2f D_err=%.2f Out=%.2f",
 					sp, pv, unit->PID_err_old, err, P_err, unit->PID_I_err, D_err, Out);
 			}
+			unit->PID_err_old = err;
+
 			if (unit->heater_address) {
 			    if (Out >= 2) {
 				if (unit->heater_wait < unit->heater_delay) {

mercurial