Skip to content

Commit

Permalink
Remove SD file available size saturation
Browse files Browse the repository at this point in the history
  • Loading branch information
korzo89 authored and igrr committed May 9, 2017
1 parent 7de8127 commit b623613
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libraries/SD/src/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ int File::read(void *buf, uint16_t nbyte) {
int File::available() {
if (! _file) return 0;

uint32_t n = size() - position();

return n > 0X7FFF ? 0X7FFF : n;
return size() - position();
}

void File::flush() {
Expand Down

0 comments on commit b623613

Please sign in to comment.