Skip to content

Commit cff06db

Browse files
authored
Corrected wrong order in subtraction for UDP available (#67)
1 parent 673bdfe commit cff06db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NBUdp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ int NBUDP::available()
259259
return 0;
260260
}
261261

262-
return (_rxIndex - _rxSize);
262+
return (_rxSize - _rxIndex);
263263
}
264264

265265
int NBUDP::read()

0 commit comments

Comments
 (0)