Correct compiler warning, try harder to match upstream formatting style
This commit is contained in:
parent
3b66056d75
commit
4102ff48cc
25
espmhp.cpp
25
espmhp.cpp
@ -305,19 +305,20 @@ void MitsubishiHeatPump::hpSettingsChanged() {
|
|||||||
/*
|
/*
|
||||||
* Compute running state from mode & temperatures
|
* Compute running state from mode & temperatures
|
||||||
*/
|
*/
|
||||||
this->action = climate::CLIMATE_ACTION_OFF;
|
|
||||||
switch (this->mode) {
|
switch (this->mode) {
|
||||||
case climate::CLIMATE_MODE_HEAT:
|
case climate::CLIMATE_MODE_HEAT:
|
||||||
if (this->current_temperature < this->target_temperature) {
|
if (this->current_temperature < this->target_temperature) {
|
||||||
this->action = climate::CLIMATE_ACTION_HEATING;
|
this->action = climate::CLIMATE_ACTION_HEATING;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case climate::CLIMATE_MODE_COOL:
|
case climate::CLIMATE_MODE_COOL:
|
||||||
case climate::CLIMATE_MODE_DRY:
|
case climate::CLIMATE_MODE_DRY:
|
||||||
if (this->current_temperature > this->target_temperature) {
|
if (this->current_temperature > this->target_temperature) {
|
||||||
this->action = climate::CLIMATE_ACTION_COOLING;
|
this->action = climate::CLIMATE_ACTION_COOLING;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
this->action = climate::CLIMATE_ACTION_OFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user