diff --git a/teensy/teensy-filemanager.cpp b/teensy/teensy-filemanager.cpp index ec44976..b80e20f 100644 --- a/teensy/teensy-filemanager.cpp +++ b/teensy/teensy-filemanager.cpp @@ -69,6 +69,11 @@ void TeensyFileManager::closeFile(int8_t fd) cachedNames[fd][0] = '\0'; } +void TeensyFileManager::truncate(int8_t fd) +{ + /* Not used in the code anywhere, yet, and unimplemented here... */ +} + const char *TeensyFileManager::fileName(int8_t fd) { if (fd < 0 || fd >= numCached) @@ -332,6 +337,7 @@ bool TeensyFileManager::writeByteAt(int8_t fd, uint8_t v, uint32_t pos) return (rawFile.write(&v, 1) == 1); } +// FIXME: the semantics of this are wrong - lots of 'return false' for a uint8_t uint8_t TeensyFileManager::readByte(int8_t fd) { // open, seek, read, close. diff --git a/teensy/teensy-filemanager.h b/teensy/teensy-filemanager.h index f7d5ac3..4593a2e 100644 --- a/teensy/teensy-filemanager.h +++ b/teensy/teensy-filemanager.h @@ -12,6 +12,8 @@ class TeensyFileManager : public FileManager { virtual int8_t openFile(const char *name); virtual void closeFile(int8_t fd); + virtual void truncate(int8_t fd); + virtual const char *fileName(int8_t fd); virtual int8_t readDir(const char *where, const char *suffix, char *outputFN, int8_t startIdx, uint16_t maxlen);