aboutsummaryrefslogtreecommitdiff
path: root/src/core/SoftwareSerial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SoftwareSerial.cpp')
-rwxr-xr-xsrc/core/SoftwareSerial.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/SoftwareSerial.cpp b/src/core/SoftwareSerial.cpp
index a49dc4b..e69c459 100755
--- a/src/core/SoftwareSerial.cpp
+++ b/src/core/SoftwareSerial.cpp
@@ -186,10 +186,11 @@ void SoftwareSerial::setTX(uint8_t tx) {
void SoftwareSerial::setRX(uint8_t rx) {
if (rx >= 0) {
+ pinMode(rx, INPUT);
if (!_inverse_logic) {
- //TODO:pin pullup
+ digitalWrite(rx, HIGH);//rx pin is pull up
} else {
- //TODO:pin pulldown
+ digitalWrite(rx, LOW);//rx pin is inactive
}
}
_receivePin = rx;