1
0
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:
Bryce Schober 2018-04-06 02:23:46 -07:00 committed by david gauchard
parent b93cba1046
commit 3a110aa698

View File

@ -40,7 +40,7 @@ void HardwareSerial::begin(unsigned long baud, SerialConfig config, SerialMode m
end(); end();
_uart = uart_init(_uart_nr, baud, (int) config, (int) mode, tx_pin, _rx_size); _uart = uart_init(_uart_nr, baud, (int) config, (int) mode, tx_pin, _rx_size);
#if defined(DEBUG_ESP_PORT) && !defined(NDEBUG) #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); setDebugOutput(true);
println(); println();