aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2021-06-08 17:33:35 +0000
committerKevinOConnor <kevin@koconnor.net>2021-06-22 15:15:03 -0400
commitf1091a484bfbf2cc5676e3a6fcd595172f123f67 (patch)
tree4aca1b8dcbc76464b4c3ebd7cb0486c501ab2f8c /klippy/extras/display
parent478f26cab6c8e73e3970d2b303bc818f6910ae74 (diff)
downloadkutter-f1091a484bfbf2cc5676e3a6fcd595172f123f67.tar.gz
kutter-f1091a484bfbf2cc5676e3a6fcd595172f123f67.tar.xz
kutter-f1091a484bfbf2cc5676e3a6fcd595172f123f67.zip
virtual_sdcard: add `file_path` and `file_size` to `status`
This provides a comprehensive information if currently we have a file loaded. Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
Diffstat (limited to 'klippy/extras/display')
-rw-r--r--klippy/extras/display/menu.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/display/menu.cfg b/klippy/extras/display/menu.cfg
index 594a16c4..213aea02 100644
--- a/klippy/extras/display/menu.cfg
+++ b/klippy/extras/display/menu.cfg
@@ -165,7 +165,7 @@ name: SD Card
[menu __main __sdcard __start]
type: command
-enable: {('virtual_sdcard' in printer) and (printer.print_stats.state == "standby" or printer.print_stats.state == "error" or printer.print_stats.state == "complete")}
+enable: {('virtual_sdcard' in printer) and printer.virtual_sdcard.file_path}
name: Start printing
gcode: M24