virtual_sdcard: register sd static path
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
0c7faa978c
commit
e4f3f60ea6
|
@ -35,6 +35,9 @@ class VirtualSD:
|
||||||
self.gcode.register_command(
|
self.gcode.register_command(
|
||||||
"SDCARD_PRINT_FILE", self.cmd_SDCARD_PRINT_FILE,
|
"SDCARD_PRINT_FILE", self.cmd_SDCARD_PRINT_FILE,
|
||||||
desc=self.cmd_SDCARD_PRINT_FILE_help)
|
desc=self.cmd_SDCARD_PRINT_FILE_help)
|
||||||
|
# Register sd path
|
||||||
|
webhooks = printer.lookup_object('webhooks')
|
||||||
|
webhooks.register_static_path("sd_path", self.sdcard_dirname)
|
||||||
def handle_shutdown(self):
|
def handle_shutdown(self):
|
||||||
if self.work_timer is not None:
|
if self.work_timer is not None:
|
||||||
self.must_pause_work = True
|
self.must_pause_work = True
|
||||||
|
|
Loading…
Reference in New Issue