Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 05573af

Browse files
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

‎hardware/arduino/avr/libraries/SoftwareSerial/src/SoftwareSerial.cpp

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /