Add missing cast to SoftwareSerial::peek() when returning buffered value
This commit is contained in:
parent
7b2f6fc028
commit
8beaa0e1b1
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue