thermferm/thermferm.c

changeset 614
389097dc665d
parent 611
732d482f47c8
child 644
07cc86900473
--- a/thermferm/thermferm.c	Fri May 28 14:25:56 2021 +0200
+++ b/thermferm/thermferm.c	Sun Jul 10 14:33:13 2022 +0200
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Copyright (C) 2014-2021
+ * Copyright (C) 2014-2022
  *   
  * Michiel Broek <mbroek at mbse dot eu>
  *
@@ -1286,6 +1286,10 @@
 
 		if (unit->beer_address) {
 		    rc = device_in(unit->beer_address, &temp);
+		    if ((rc == DEVPRESENT_NO) && unit->beer_address2) {
+			/* Read alternative sensor */
+			rc = device_in(unit->beer_address2, &temp);
+		    }
 		    if (rc == DEVPRESENT_YES) {
 			if (unit->beer_temperature != temp) {
 			    unit->mqtt_flag |= MQTT_FLAG_DATA;

mercurial