Cast pointers to void* before comparision

This commit is contained in:
Geoff Davis 2023-01-21 10:22:04 -08:00
parent 4c98affd26
commit e393e68799

View File

@ -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_());