mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
minor formatting
This commit is contained in:
@@ -1637,7 +1637,7 @@ void MQTTCallback(unsigned int type, const char * topic, const char * message) {
|
|||||||
float f = strtof((char *)message, 0);
|
float f = strtof((char *)message, 0);
|
||||||
if (f) {
|
if (f) {
|
||||||
ems_setThermostatTemp(f, hc);
|
ems_setThermostatTemp(f, hc);
|
||||||
publishEMSValues(true); // publish back immediately }
|
publishEMSValues(true); // publish back immediately
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1679,7 +1679,7 @@ void MQTTCallback(unsigned int type, const char * topic, const char * message) {
|
|||||||
float f = doc["data"];
|
float f = doc["data"];
|
||||||
if (f) {
|
if (f) {
|
||||||
ems_setThermostatTemp(f, hc);
|
ems_setThermostatTemp(f, hc);
|
||||||
publishEMSValues(true); // publish back immediately }
|
publishEMSValues(true); // publish back immediately
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1710,7 +1710,7 @@ void MQTTCallback(unsigned int type, const char * topic, const char * message) {
|
|||||||
if (EMS_Thermostat.hc[hc - 1].active) {
|
if (EMS_Thermostat.hc[hc - 1].active) {
|
||||||
float f = doc["data"];
|
float f = doc["data"];
|
||||||
if (f) {
|
if (f) {
|
||||||
ems_setThermostatTemp(f, hc, 1); // night }
|
ems_setThermostatTemp(f, hc, 1); // night
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user