From 14f4ee85b9c9adc1800b26c8093f1a06d2cc337e Mon Sep 17 00:00:00 2001 From: Terry Moore Date: Sat, 21 Apr 2018 20:08:37 +0800 Subject: [PATCH] Clean up fix for Arduino issue 234 --- SoftwareSerial.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoftwareSerial.cpp b/SoftwareSerial.cpp index e487ed4..7c23ece 100644 --- a/SoftwareSerial.cpp +++ b/SoftwareSerial.cpp @@ -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); } @@ -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); }