Skip to content

Commit

Permalink
virtual_sdcard: Allow spaces in file path for M23
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Schuh <[email protected]>
  • Loading branch information
jschuh committed Mar 2, 2022
1 parent 7ce409d commit 9d80230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/extras/virtual_sdcard.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def cmd_M23(self, gcmd):
self._reset_file()
try:
orig = gcmd.get_commandline()
filename = orig[orig.find("M23") + 4:].split()[0].strip()
filename = orig.split(None, 1)[1].strip()
if '*' in filename:
filename = filename[:filename.find('*')].strip()
except:
Expand Down

0 comments on commit 9d80230

Please sign in to comment.