diff -r e2766e538d0e -r e00f8ff4de9a thermferm/thermferm.c --- a/thermferm/thermferm.c Mon Nov 04 13:19:27 2019 +0100 +++ b/thermferm/thermferm.c Sat Apr 25 20:31:31 2020 +0200 @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (C) 2014-2019 + * Copyright (C) 2014-2020 * * Michiel Broek * @@ -1642,10 +1642,12 @@ } /* - * PID controller compute + * PID controller compute, simulate 100 mSec loops. */ - UpdatePID(unit->PID_heat); - UpdatePID(unit->PID_cool); + for (int i = 0; i < 10; i++) { + UpdatePID(unit->PID_heat); + UpdatePID(unit->PID_cool); + } /* * Logging @@ -1869,9 +1871,7 @@ publishDBirth(unit); unit->mqtt_flag &= ~MQTT_FLAG_BIRTH; } else { -// if (unit->mode != UNITMODE_OFF) { - publishDData(unit); -// } + publishDData(unit); unit->mqtt_flag &= ~MQTT_FLAG_DATA; } if (unit->mqtt_flag & MQTT_FLAG_DEATH) {