Correct compiler warning, try harder to match upstream formatting style

This commit is contained in:
Phil Genera 2020-05-31 20:00:11 -04:00
parent 3b66056d75
commit 4102ff48cc

View File

@ -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;
} }
/* /*