mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
auto formatting
This commit is contained in:
@@ -876,7 +876,7 @@ void Boiler::check_active(const bool force) {
|
|||||||
// check if tap water is active, bits 1 and 4 must be set
|
// check if tap water is active, bits 1 and 4 must be set
|
||||||
b = ((boilerState_ & 0x0A) == 0x0A);
|
b = ((boilerState_ & 0x0A) == 0x0A);
|
||||||
val = b ? EMS_VALUE_BOOL_ON : EMS_VALUE_BOOL_OFF;
|
val = b ? EMS_VALUE_BOOL_ON : EMS_VALUE_BOOL_OFF;
|
||||||
if (tapwaterActive_ != val || force ) {
|
if (tapwaterActive_ != val || force) {
|
||||||
tapwaterActive_ = val;
|
tapwaterActive_ = val;
|
||||||
char s[7];
|
char s[7];
|
||||||
Mqtt::publish(F("tapwater_active"), Helpers::render_boolean(s, b));
|
Mqtt::publish(F("tapwater_active"), Helpers::render_boolean(s, b));
|
||||||
|
|||||||
Reference in New Issue
Block a user