mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-20 13:17:55 -06:00
print_stats: Add virtual_sdcard state tracking
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
74c0e3a484
commit
b9f48e634e
2 changed files with 23 additions and 8 deletions
|
@ -231,6 +231,7 @@ class VirtualSD:
|
|||
try:
|
||||
self.gcode.run_script(lines[-1])
|
||||
except self.gcode.error as e:
|
||||
self.print_stats.note_error(str(e))
|
||||
break
|
||||
except:
|
||||
logging.exception("virtual_sdcard dispatch")
|
||||
|
@ -243,7 +244,7 @@ class VirtualSD:
|
|||
if self.current_file is not None:
|
||||
self.print_stats.note_pause()
|
||||
else:
|
||||
self._reset_file()
|
||||
self.print_stats.note_complete()
|
||||
return self.reactor.NEVER
|
||||
|
||||
def load_config(config):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue