Merge pull request #108 from nathanjw/master

Fix two bits of debugging output
This commit is contained in:
Geoff Davis 2023-10-13 13:29:19 -07:00 committed by GitHub
commit ef4c0ea9ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,7 +219,7 @@ void MitsubishiHeatPump::control(const climate::ClimateCall &call) {
//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("control", "Requested fan mode is %d", *call.get_fan_mode());
this->fan_mode = *call.get_fan_mode();
switch(*call.get_fan_mode()) {
case climate::CLIMATE_FAN_OFF:
@ -257,7 +257,7 @@ void MitsubishiHeatPump::control(const climate::ClimateCall &call) {
//const char* VANE_MAP[7] = {"AUTO", "1", "2", "3", "4", "5", "SWING"};
if (call.get_swing_mode().has_value()) {
ESP_LOGV(TAG, "control - requested swing mode is %s",
ESP_LOGD(TAG, "control - requested swing mode is %d",
*call.get_swing_mode());
this->swing_mode = *call.get_swing_mode();
@ -365,7 +365,7 @@ void MitsubishiHeatPump::hpSettingsChanged() {
} else { //case "AUTO" or default:
this->fan_mode = climate::CLIMATE_FAN_AUTO;
}
ESP_LOGI(TAG, "Fan mode is: %i", this->fan_mode);
ESP_LOGI(TAG, "Fan mode is: %i", this->fan_mode.value_or(-1));
/* ******** HANDLE MITSUBISHI VANE CHANGES ********
* const char* VANE_MAP[7] = {"AUTO", "1", "2", "3", "4", "5", "SWING"};