Skip to content

Commit

Permalink
Merge pull request arduino#2090 from jenscski/master-fix-1361
Browse files Browse the repository at this point in the history
Bug in SoftwareSerial when using inverse logic
  • Loading branch information
cmaglie committed May 23, 2014
2 parents 9ad8748 + 17e1eb5 commit b999ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SoftwareSerial/SoftwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ SoftwareSerial::~SoftwareSerial()
void SoftwareSerial::setTX(uint8_t tx)
{
pinMode(tx, OUTPUT);
digitalWrite(tx, HIGH);
digitalWrite(tx, _inverse_logic ? LOW : HIGH);
_transmitBitMask = digitalPinToBitMask(tx);
uint8_t port = digitalPinToPort(tx);
_transmitPortRegister = portOutputRegister(port);
Expand Down

0 comments on commit b999ed2

Please sign in to comment.