mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
add comment for reference
This commit is contained in:
@@ -4171,12 +4171,15 @@ bool Thermostat::set_temperature(const float temperature, const uint8_t mode, co
|
|||||||
// add the write command to the Tx queue. value is *2
|
// add the write command to the Tx queue. value is *2
|
||||||
// post validate is the corresponding monitor or set type IDs as they can differ per model
|
// post validate is the corresponding monitor or set type IDs as they can differ per model
|
||||||
write_command(set_typeid, offset, (uint8_t)(temperature * (float)factor), validate_typeid);
|
write_command(set_typeid, offset, (uint8_t)(temperature * (float)factor), validate_typeid);
|
||||||
|
|
||||||
// update selTemp now, readback from monitor telegram takes a while
|
// update selTemp now, readback from monitor telegram takes a while
|
||||||
if (mode == HeatingCircuit::Mode::AUTO) {
|
if (mode == HeatingCircuit::Mode::AUTO) {
|
||||||
has_update(hc->selTemp,(int16_t)(temperature * factor));
|
has_update(hc->selTemp, (int16_t)(temperature * factor));
|
||||||
|
// read_command(0x08, 0x18); // UBAMonitorFast
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_DEBUG("temperature mode %d not found", mode);
|
LOG_DEBUG("temperature mode %d not found", mode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user