1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

SD File object implements Stream.

Added peak() and available() using a single byte buffer.
Added flush().
This commit is contained in:
David A. Mellis
2010-11-20 11:45:05 -05:00
parent 6788eea3b8
commit fcc4188b15
4 changed files with 39 additions and 12 deletions

View File

@ -297,6 +297,7 @@ boolean callback_openPath(SdFile& parentDir, char *filePathComponent,
SDClass *p_MemoryCard = static_cast<SDClass*>(object);
p_MemoryCard->file.open(parentDir, filePathComponent,
p_MemoryCard->fileOpenMode);
p_MemoryCard->c = -1;
// TODO: Return file open result?
return false;
}