Followup to SD menu optimization (#15252)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							61e3f119f4
						
					
				
				
					commit
					15bea5043c
				
			@@ -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; }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user