aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorSandeep Mistry <s.mistry@arduino.cc>2016-03-09 15:12:31 -0500
committerSandeep Mistry <s.mistry@arduino.cc>2016-03-10 10:23:50 -0500
commit8beaa0e1b1eb3382b7f5358253bd40e9bad67df7 (patch)
tree4189d3f8f93cf99a42ff26aae979698928fea4e0 /libraries
parent7b2f6fc02881ec6a01a3b1d4ae248202232c4c6c (diff)
Add missing cast to SoftwareSerial::peek() when returning buffered value
Diffstat (limited to 'libraries')
-rw-r--r--libraries/SoftwareSerial/src/SoftwareSerial.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/SoftwareSerial/src/SoftwareSerial.cpp b/libraries/SoftwareSerial/src/SoftwareSerial.cpp
index 0a16ff7..877d128 100644
--- a/libraries/SoftwareSerial/src/SoftwareSerial.cpp
+++ b/libraries/SoftwareSerial/src/SoftwareSerial.cpp
@@ -482,5 +482,5 @@ int SoftwareSerial::peek()
return -1;
// Read from "head"
- return _receive_buffer[_receive_buffer_head];
+ return (uint8_t)_receive_buffer[_receive_buffer_head];
}