From e393e68799d310efcfe10648b4d519a9658b337b Mon Sep 17 00:00:00 2001 From: Geoff Davis Date: Sat, 21 Jan 2023 10:22:04 -0800 Subject: [PATCH] Cast pointers to void* before comparision --- 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..04af44f 100644 --- a/components/mitsubishi_heatpump/espmhp.cpp +++ b/components/mitsubishi_heatpump/espmhp.cpp @@ -451,7 +451,7 @@ void MitsubishiHeatPump::setup() { "hw_serial(%p) is &Serial(%p)? %s", this->get_hw_serial_(), &Serial, - YESNO(this->get_hw_serial_() == &Serial) + YESNO((void *)this->get_hw_serial_() == (void *)&Serial) ); ESP_LOGCONFIG(TAG, "Calling hp->connect(%p)", this->get_hw_serial_());