Followup to SD menu optimization (#15252)

This commit is contained in:
Tanguy Pruvot authored and Scott Lahteine committed 2019-09-14 06:42:28 -05:00
1 parent 61e3f119f4
commit 15bea5043c
5 files changed
+10 -7

No files matched your search

+1 -1
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; }