thermferm/thermferm.c

changeset 548
2924fe4911d9
parent 547
0e4d4b45249f
child 550
04c942cded91
--- a/thermferm/thermferm.c	Thu Jul 19 14:08:32 2018 +0200
+++ b/thermferm/thermferm.c	Fri Jul 20 21:37:45 2018 +0200
@@ -1898,7 +1898,9 @@
 			publishDBirth(unit);
 			unit->mqtt_flag &= ~MQTT_FLAG_BIRTH;
 		    } else {
-			publishDData(unit);
+			if (unit->mode != UNITMODE_OFF) {
+			    publishDData(unit);
+			}
 			unit->mqtt_flag &= ~MQTT_FLAG_DATA;
 		    }
 		    if (unit->mqtt_flag & MQTT_FLAG_DEATH) {

mercurial