Movatterモバイル変換


[0]ホーム

URL:


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

Commit67e4387

Browse files
zakkiefacchinm
authored andcommitted
remove unnecessary if branch
checking `length` in below while statementPorting ofarduino/ArduinoCore-avr#103
1 parent3daf189 commit67e4387

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎api/Stream.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ size_t Stream::readBytes(char *buffer, size_t length)
220220

221221
size_tStream::readBytesUntil(char terminator,char *buffer,size_t length)
222222
{
223-
if (length <1)return0;
224223
size_t index =0;
225224
while (index < length) {
226225
int c =timedRead();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp