mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
Helpers::hasValue()
This commit is contained in:
@@ -100,19 +100,19 @@ void Mixing::publish_values() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (flowTemp_ != EMS_VALUE_USHORT_NOTSET) {
|
||||
if (Helpers::hasValue(flowTemp_)) {
|
||||
doc["flowTemp"] = (float)flowTemp_ / 10;
|
||||
}
|
||||
|
||||
if (pumpMod_ != EMS_VALUE_UINT_NOTSET) {
|
||||
if (Helpers::hasValue(pumpMod_)) {
|
||||
doc["pumpMod"] = pumpMod_;
|
||||
}
|
||||
|
||||
if (status_ != EMS_VALUE_UINT_NOTSET) {
|
||||
if (Helpers::hasValue(status_)) {
|
||||
doc["status"] = status_;
|
||||
}
|
||||
|
||||
if (flowSetTemp_ != EMS_VALUE_UINT_NOTSET) {
|
||||
if (Helpers::hasValue(flowSetTemp_)) {
|
||||
doc["flowSetTemp"] = flowSetTemp_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user