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:
Arksine 2020-11-13 06:03:19 -05:00
parent 6763ea6197
commit b021d10de5
1 changed files with 1 additions and 1 deletions

View File

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