mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Remove SD file available size saturation
This commit is contained in:
parent
7de81270a3
commit
b623613b2a
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user