Skip to content

Commit 6ab86c6

Browse files
committed
adds Hardware Flow Control mode and CTS/RTS pin setting
1 parent 2e70fc8 commit 6ab86c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp32/HardwareSerial.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ class HardwareSerial: public Stream
110110

111111
// Negative Pin Number will keep it unmodified, thus this function can set individual pins
112112
// SetPins shall be called after Serial begin()
113-
void setPins(int8_t rxPin = -1, int8_t txPin = -1);
114-
void setAllPins(int8_t rxPin = -1, int8_t txPin = -1, int8_t ctsPin = -1, int8_t rtsPin = -1);
113+
void setPins(int8_t rxPin, int8_t txPin);
114+
void setAllPins(int8_t rxPin, int8_t txPin, int8_t ctsPin, int8_t rtsPin);
115115
// Enables or disables Hardware Flow Control using RTS and/or CTS pins (must use setAllPins() before)
116116
void setHwFlowCtrlMode(uint8_t mode = HW_FLOWCTRL_CTS_RTS, uint8_t threshold = 64); // 64 is half FIFO Length
117117

0 commit comments

Comments
 (0)