Update SoftwareSerial.cpp

This commit is contained in:
Bradley Luke Totaro 2016-04-05 15:10:46 -04:00
parent 3616dadb3a
commit 71b87bf26b
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ void SoftwareSerial::setTX(uint8_t tx)
{
// First write, then set output. If we do this the other way around,
// the pin would be output low for a short while before switching to
// output hihg. Now, it is input with pullup for a short while, which
// output high. Now, it is input with pullup for a short while, which
// is fine. With inverse logic, either order is fine.
digitalWrite(tx, _inverse_logic ? LOW : HIGH);
pinMode(tx, OUTPUT);