Skip to content

Commit

Permalink
Clean up fix for Arduino issue 234
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Apr 21, 2018
1 parent 6ac4362 commit 14f4ee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SoftwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void SoftwareSerial::setTX(uint8_t tx)
pinMode(tx, OUTPUT);
_transmitBitMask = digitalPinToBitMask(tx);
PortGroup * port = digitalPinToPort(tx);
_transmitPortRegister = (volatile decltype(_transmitPortRegister)) portOutputRegister(port);
_transmitPortRegister = (decltype(_transmitPortRegister)) portOutputRegister(port);

}

Expand All @@ -180,7 +180,7 @@ void SoftwareSerial::setRX(uint8_t rx)
_receivePin = rx;
_receiveBitMask = digitalPinToBitMask(rx);
PortGroup * port = digitalPinToPort(rx);
_receivePortRegister = (volatile decltype(_receivePortRegister)) portInputRegister(port);
_receivePortRegister = (decltype(_receivePortRegister)) portInputRegister(port);

}

Expand Down

0 comments on commit 14f4ee8

Please sign in to comment.