Skip to content

Commit 4e94855

Browse files
authored
feat(uart): Change setRxInvert and setTxInvert to return bool
1 parent 474edd3 commit 4e94855

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cores/esp32/HardwareSerial.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,10 @@ class HardwareSerial : public Stream {
348348

349349
void setDebugOutput(bool);
350350

351-
void setRxInvert(bool);
352-
void setTxInvert(bool);
351+
bool setRxInvert(bool);
352+
bool setTxInvert(bool);
353+
bool setCtsInvert(bool);
354+
bool setRtsInvert(bool);
353355

354356
// Negative Pin Number will keep it unmodified, thus this function can set individual pins
355357
// setPins() can be called after or before begin()

0 commit comments

Comments
 (0)