Update SoftwareSerial.cpp
This commit is contained in:
parent
3616dadb3a
commit
71b87bf26b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue