webhooks: Remove register_static_path()
Use the "info" webhook to pass critical process information back to the caller. The remaining users of register_static_path() can get the required information via get_status() calls. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -35,9 +35,6 @@ class VirtualSD:
|
||||
self.gcode.register_command(
|
||||
"SDCARD_PRINT_FILE", self.cmd_SDCARD_PRINT_FILE,
|
||||
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):
|
||||
if self.work_timer is not None:
|
||||
self.must_pause_work = True
|
||||
|
||||
Reference in New Issue
Block a user