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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user