mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
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…
x
Reference in New Issue
Block a user