aboutsummaryrefslogtreecommitdiff
path: root/libraries/SoftwareSerial/src/SoftwareSerial.cpp
diff options
context:
space:
mode:
authorSandeep Mistry <s.mistry@arduino.cc>2016-03-10 10:22:44 -0500
committerSandeep Mistry <s.mistry@arduino.cc>2016-03-10 10:23:50 -0500
commit422b6f9bb797fc59e12ad95171ca037629ed9b14 (patch)
tree6ed35eea9ccfa2493d34f26fabfab0920085e237 /libraries/SoftwareSerial/src/SoftwareSerial.cpp
parent8beaa0e1b1eb3382b7f5358253bd40e9bad67df7 (diff)
Make SoftwareSerial receive buffer a uint8_t array
Diffstat (limited to 'libraries/SoftwareSerial/src/SoftwareSerial.cpp')
-rw-r--r--libraries/SoftwareSerial/src/SoftwareSerial.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/SoftwareSerial/src/SoftwareSerial.cpp b/libraries/SoftwareSerial/src/SoftwareSerial.cpp
index 877d128..376762e 100644
--- a/libraries/SoftwareSerial/src/SoftwareSerial.cpp
+++ b/libraries/SoftwareSerial/src/SoftwareSerial.cpp
@@ -48,7 +48,7 @@ http://arduiniana.org.
// Statics
//
SoftwareSerial *SoftwareSerial::active_object = 0;
-char SoftwareSerial::_receive_buffer[_SS_MAX_RX_BUFF];
+uint8_t SoftwareSerial::_receive_buffer[_SS_MAX_RX_BUFF];
volatile uint8_t SoftwareSerial::_receive_buffer_tail = 0;
volatile uint8_t SoftwareSerial::_receive_buffer_head = 0;
@@ -482,5 +482,5 @@ int SoftwareSerial::peek()
return -1;
// Read from "head"
- return (uint8_t)_receive_buffer[_receive_buffer_head];
+ return _receive_buffer[_receive_buffer_head];
}