We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 342dab6 commit daade74Copy full SHA for daade74
cores/arduino/HardwareSerial.cpp
@@ -166,7 +166,7 @@ HardwareSerial::HardwareSerial(void* peripheral)
166
// If Serial is defined in variant set
167
// the Rx/Tx pins for com port if defined
168
#if defined(Serial) && defined(PIN_SERIAL_RX) && defined(PIN_SERIAL_TX)
169
- if (this == &Serial) {
+ if ((void*)this == (void*)&Serial) {
170
setRx(PIN_SERIAL_RX);
171
setTx(PIN_SERIAL_TX);
172
} else
0 commit comments