mirror of https://github.com/noisymime/Arduino.git
Add missing cast to SoftwareSerial::peek() when returning buffered value
This commit is contained in:
parent
26e25a4d58
commit
dfc3a64744
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue