klippy_apis: add quotes around filename in call to SDCARD_PRINT_FILE
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
6763ea6197
commit
b021d10de5
|
@ -80,7 +80,7 @@ class KlippyAPI:
|
|||
# XXX - validate that file is on disk
|
||||
if filename[0] == '/':
|
||||
filename = filename[1:]
|
||||
script = "SDCARD_PRINT_FILE FILENAME=" + filename
|
||||
script = f'SDCARD_PRINT_FILE FILENAME="{filename}"'
|
||||
return await self.run_gcode(script)
|
||||
|
||||
async def do_restart(self, gc):
|
||||
|
|
Loading…
Reference in New Issue