Skip to content

Commit 0631707

Browse files
committed
fixed the wrong usage of portOutputRegister instead of portInputRegister
1 parent 2ae8516 commit 0631707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoftwareUart.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ SoftwareUart::SoftwareUart(uint8_t receivePin, uint8_t transmitPin, bool inverse
350350

351351
_rxPin = receivePin;
352352
_rxBitMask = digitalPinToBitMask(receivePin);
353-
_rxPort = portOutputRegister(digitalPinToPort(receivePin));
353+
_rxPort = portInputRegister(digitalPinToPort(receivePin));
354354

355355
pinMode(_rxPin, INPUT);
356356
if (!_inverse_logic) { digitalWrite(_rxPin, HIGH); } // pullup for normal logic

0 commit comments

Comments
 (0)