1
0
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:
Korzo 2017-05-06 19:01:45 +02:00 committed by Ivan Grokhotkov
parent 7de81270a3
commit b623613b2a

View File

@ -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() {