Skip to content

Commit

Permalink
Corrected wrong order in subtraction for UDP available
Browse files Browse the repository at this point in the history
  • Loading branch information
baender committed Dec 7, 2020
1 parent 9abcaad commit f7fcf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NBUdp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ int NBUDP::available()
return 0;
}

return (_rxIndex - _rxSize);
return (_rxSize - _rxIndex);
}

int NBUDP::read()
Expand Down

0 comments on commit f7fcf36

Please sign in to comment.