From 6ceea3f477741e2371f79a2297877679d3f0a56d Mon Sep 17 00:00:00 2001 From: Will Rouesnel Date: Mon, 13 Nov 2023 00:00:42 +1100 Subject: [PATCH] Fix crash when changing fan modes Based on #120 by @markalston --- components/mitsubishi_heatpump/espmhp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mitsubishi_heatpump/espmhp.cpp b/components/mitsubishi_heatpump/espmhp.cpp index 02223a1..9720eb4 100644 --- a/components/mitsubishi_heatpump/espmhp.cpp +++ b/components/mitsubishi_heatpump/espmhp.cpp @@ -182,7 +182,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 %i", *call.get_fan_mode()); this->fan_mode = *call.get_fan_mode(); switch(*call.get_fan_mode()) { case climate::CLIMATE_FAN_OFF: