thermferm/thermferm.c

changeset 614
389097dc665d
parent 611
732d482f47c8
child 644
07cc86900473
equal deleted inserted replaced
613:163fcb0914e2 614:389097dc665d
1 /***************************************************************************** 1 /*****************************************************************************
2 * Copyright (C) 2014-2021 2 * Copyright (C) 2014-2022
3 * 3 *
4 * Michiel Broek <mbroek at mbse dot eu> 4 * Michiel Broek <mbroek at mbse dot eu>
5 * 5 *
6 * This file is part of the mbsePi-apps 6 * This file is part of the mbsePi-apps
7 * 7 *
1284 } 1284 }
1285 } 1285 }
1286 1286
1287 if (unit->beer_address) { 1287 if (unit->beer_address) {
1288 rc = device_in(unit->beer_address, &temp); 1288 rc = device_in(unit->beer_address, &temp);
1289 if ((rc == DEVPRESENT_NO) && unit->beer_address2) {
1290 /* Read alternative sensor */
1291 rc = device_in(unit->beer_address2, &temp);
1292 }
1289 if (rc == DEVPRESENT_YES) { 1293 if (rc == DEVPRESENT_YES) {
1290 if (unit->beer_temperature != temp) { 1294 if (unit->beer_temperature != temp) {
1291 unit->mqtt_flag |= MQTT_FLAG_DATA; 1295 unit->mqtt_flag |= MQTT_FLAG_DATA;
1292 // pub_domoticz_temp(unit->beer_idx, temp); 1296 // pub_domoticz_temp(unit->beer_idx, temp);
1293 } 1297 }

mercurial