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

This commit is contained in:
Sandeep Mistry 2016-03-09 15:12:31 -05:00
parent 7b2f6fc028
commit 8beaa0e1b1
1 changed files with 1 additions and 1 deletions

View File

@ -482,5 +482,5 @@ int SoftwareSerial::peek()
return -1; return -1;
// Read from "head" // Read from "head"
return _receive_buffer[_receive_buffer_head]; return (uint8_t)_receive_buffer[_receive_buffer_head];
} }