aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/virtual_sdcard.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras/virtual_sdcard.py')
-rw-r--r--klippy/extras/virtual_sdcard.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/klippy/extras/virtual_sdcard.py b/klippy/extras/virtual_sdcard.py
index ad435786..79e57c13 100644
--- a/klippy/extras/virtual_sdcard.py
+++ b/klippy/extras/virtual_sdcard.py
@@ -35,6 +35,11 @@ class VirtualSD:
except:
logging.exception("virtual_sdcard get_file_list")
raise self.gcode.error("Unable to get file list")
+ def get_status(self, eventtime):
+ progress = 0.
+ if self.work_timer is not None and self.file_size:
+ progress = float(self.file_position) / self.file_size
+ return {'progress': progress}
# G-Code commands
def cmd_error(self, params):
raise self.gcode.error("SD write not supported")