Skip to content

Commit

Permalink
Update espmhp.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
markalston committed Nov 6, 2023
1 parent 4e437fc commit b2f3da8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/mitsubishi_heatpump/espmhp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,11 @@ void MitsubishiHeatPump::control(const climate::ClimateCall &call) {
if (has_fan) {
//ESP_LOGV(TAG, "control - Requested fan mode is %s", *call.get_fan_mode());
ESP_LOGV(TAG,"Inside fan control block");
return;

this->fan_mode = *call.get_fan_mode();
switch(*call.get_fan_mode()) {
ESP_LOGV(TAG,"Got fan mode");
return;
switch(this->fan_mode) {
case climate::CLIMATE_FAN_OFF:
//hp->setPowerSetting("OFF");
//updated = true;
Expand Down

0 comments on commit b2f3da8

Please sign in to comment.