Skip to content

Commit b623613

Browse files
korzo89igrr
authored andcommitted
Remove SD file available size saturation
1 parent 7de8127 commit b623613

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libraries/SD/src/File.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ int File::read(void *buf, uint16_t nbyte) {
9898
int File::available() {
9999
if (! _file) return 0;
100100

101-
uint32_t n = size() - position();
102-
103-
return n > 0X7FFF ? 0X7FFF : n;
101+
return size() - position();
104102
}
105103

106104
void File::flush() {

0 commit comments

Comments
 (0)