From 8beaa0e1b1eb3382b7f5358253bd40e9bad67df7 Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Wed, 9 Mar 2016 15:12:31 -0500 Subject: Add missing cast to SoftwareSerial::peek() when returning buffered value --- libraries/SoftwareSerial/src/SoftwareSerial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libraries') 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]; } -- cgit v1.2.3-18-g5258