Don't printf() a std::optional, that doesn't work right.

This commit is contained in:
Nathan J. Williams 2023-07-14 16:51:28 -04:00
parent 980271337a
commit 8d7595c261

View File

@ -328,7 +328,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"};