Skip to content

Commit

Permalink
Update espmhp.cpp
Browse files Browse the repository at this point in the history
Fixed log lines to use proper TAG.  Added a log line to ensure my code is being used.
  • Loading branch information
markalston committed Nov 6, 2023
1 parent 191f7d8 commit 7453905
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/mitsubishi_heatpump/espmhp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,17 @@ void MitsubishiHeatPump::control(const climate::ClimateCall &call) {
}

if (has_temp){
ESP_LOGV(
"control", "Sending target temp: %.1f",
ESP_LOGV(TAG, "control - Sending target temp: %.1f",
*call.get_target_temperature()
);
hp->setTemperature(*call.get_target_temperature());
this->target_temperature = *call.get_target_temperature();
updated = true;
}

ESP_LOGV(TAG,"About to enter fan control block");
//const char* FAN_MAP[6] = {"AUTO", "QUIET", "1", "2", "3", "4"};
if (call.get_fan_mode().has_value()) {
ESP_LOGV("control", "Requested fan mode is %s", *call.get_fan_mode());
ESP_LOGV(TAG, "control - Requested fan mode is %s", *call.get_fan_mode());
/*
this->fan_mode = *call.get_fan_mode();
switch(*call.get_fan_mode()) {
Expand Down

0 comments on commit 7453905

Please sign in to comment.