Followup to SD menu optimization (#15252)

This commit is contained in:
Tanguy Pruvot
2019-09-14 13:42:28 +02:00
committed by Scott Lahteine
parent 61e3f119f4
commit 15bea5043c
5 changed files with 10 additions and 7 deletions

View File

@@ -120,7 +120,7 @@ public:
static inline void setIndex(const uint32_t index) { sdpos = index; file.seekSet(index); }
static inline uint32_t getIndex() { return sdpos; }
static inline uint8_t percentDone() { return (isFileOpen() && filesize) ? sdpos / ((filesize + 99) / 100) : 0; }
static inline char* getWorkDirName() { workDir.getFilename(filename); return filename; }
static inline char* getWorkDirName() { workDir.getDosName(filename); return filename; }
static inline int16_t read(void* buf, uint16_t nbyte) { return file.isOpen() ? file.read(buf, nbyte) : -1; }
static inline int16_t write(void* buf, uint16_t nbyte) { return file.isOpen() ? file.write(buf, nbyte) : -1; }