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>
This commit is contained in:
Kamil Trzcinski
2021-06-08 17:33:35 +00:00
committed by KevinOConnor
parent 478f26cab6
commit f1091a484b
3 changed files with 18 additions and 6 deletions

View File

@@ -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