1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Redoing peek() implementation (SD file class).

Now simply seeking backwards by a character in peek() rather than trying to keep track of the extra character read.
This commit is contained in:
David A. Mellis
2010-12-22 16:47:50 -06:00
parent a7a8f3fa10
commit 575bb1dafb
4 changed files with 7 additions and 22 deletions

View File

@ -300,7 +300,6 @@ boolean callback_openPath(SdFile& parentDir, char *filePathComponent,
if (p_SD->fileOpenMode == FILE_WRITE) {
p_SD->file.seekSet(p_SD->file.fileSize());
}
p_SD->c = -1;
// TODO: Return file open result?
return false;
}