# HG changeset patch # User Michiel Broek # Date 1462044310 -7200 # Node ID 4903b4da9d40ea4af3fdb64facff1aaa8f4575fd # Parent 18ace27338e53ac21b91c3e2a708c02ad8cf7da9 Fixed empty setpoint values diff -r 18ace27338e5 -r 4903b4da9d40 thermferm/thermferm.c --- a/thermferm/thermferm.c Sat Apr 30 21:06:20 2016 +0200 +++ b/thermferm/thermferm.c Sat Apr 30 21:25:10 2016 +0200 @@ -1975,7 +1975,7 @@ } } #ifdef HAVE_MOSQUITTO_H - if (mqtt_use && (seconds == 60)) { + if (mqtt_use && (seconds == 60) && ((unit->mode == UNITMODE_FRIDGE) || (unit->mode == UNITMODE_BEER) || (unit->mode == UNITMODE_PROFILE))) { sprintf(buf, "%.1f", LCDspH); snprintf(topic, 1023, "fermenter/%s/%s/setpoint/high", hostname, unit->uuid); mosquitto_publish(mosq, &mqtt_mid_sent, topic, strlen(buf), buf, mqtt_qos, 1);