Skip to content

Commit 05573af

Browse files
committed
Add missing cast to SoftwareSerial::peek() when returning buffered value
1 parent 9a8dd2a commit 05573af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: hardware/arduino/avr/libraries/SoftwareSerial/src/SoftwareSerial.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,5 +482,5 @@ int SoftwareSerial::peek()
482482
return -1;
483483

484484
// Read from "head"
485-
return _receive_buffer[_receive_buffer_head];
485+
return (uint8_t)_receive_buffer[_receive_buffer_head];
486486
}

0 commit comments

Comments
 (0)