Skip to content

Commit

Permalink
Update espmhp.cpp
Browse files Browse the repository at this point in the history
more debugging
  • Loading branch information
markalston committed Nov 6, 2023
1 parent d05d552 commit faf6c5b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/mitsubishi_heatpump/espmhp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,18 @@ climate::ClimateTraits& MitsubishiHeatPump::config_traits() {
*/
void MitsubishiHeatPump::control(const climate::ClimateCall &call) {
ESP_LOGV(TAG, "Control called.");
ESP_LOGV(TAG, "Returning.");
return;

bool updated = false;
bool has_mode = call.get_mode().has_value();
bool has_temp = call.get_target_temperature().has_value();

if (has_mode){
ESP_LOGV(TAG, "Has Mode");
return;
this->mode = *call.get_mode();
} else {
ESP_LOGV(TAG, "Doesn't Have Mode");
return;
}
switch (this->mode) {
case climate::CLIMATE_MODE_COOL:
Expand Down

0 comments on commit faf6c5b

Please sign in to comment.