watchdog,percent done,
This commit is contained in:
parent
c57906b627
commit
7919a40d06
7 changed files with 55 additions and 33 deletions
|
|
@ -33,6 +33,7 @@ public:
|
|||
inline bool eof() { return sdpos>=filesize ;};
|
||||
inline int16_t get() { sdpos = file.curPosition();return (int16_t)file.read();};
|
||||
inline void setIndex(long index) {sdpos = index;file.seekSet(index);};
|
||||
inline uint8_t percentDone(){if(!sdprinting) return 0; if(filesize) return sdpos*100/filesize; else return 0;};
|
||||
|
||||
public:
|
||||
bool saving;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue