Skip to content

Commit

Permalink
Allow other ESP debug port class types (esp8266#4611)
Browse files Browse the repository at this point in the history
... by casting to void pointers before comparison to avoid compile error
  • Loading branch information
bryceschober authored and d-a-v committed Apr 6, 2018
1 parent b93cba1 commit 3a110aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3a110aa

Please sign in to comment.