Commit 8beaa0e1 authored by Sandeep Mistry's avatar Sandeep Mistry

Add missing cast to SoftwareSerial::peek() when returning buffered value

parent 7b2f6fc0
......@@ -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];
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment