mirror of
https://github.com/geoffdavis/esphome-mitsubishiheatpump
synced 2025-07-25 11:02:24 +00:00
Merge pull request #86 from geoffdavis:UART-Compare-Fix
Cast pointers to void* before comparision
This commit is contained in:
@ -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_());
|
||||
|
Reference in New Issue
Block a user