mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Allow other ESP debug port class types (#4611)
... by casting to void pointers before comparison to avoid compile error
This commit is contained in:
parent
b93cba1046
commit
3a110aa698
@ -40,7 +40,7 @@ void HardwareSerial::begin(unsigned long baud, SerialConfig config, SerialMode m
|
||||
end();
|
||||
_uart = uart_init(_uart_nr, baud, (int) config, (int) mode, tx_pin, _rx_size);
|
||||
#if defined(DEBUG_ESP_PORT) && !defined(NDEBUG)
|
||||
if (this == &DEBUG_ESP_PORT)
|
||||
if (static_cast<void*>(this) == static_cast<void*>(&DEBUG_ESP_PORT))
|
||||
{
|
||||
setDebugOutput(true);
|
||||
println();
|
||||
|
Loading…
x
Reference in New Issue
Block a user