mirror of https://github.com/Desuuuu/klipper.git
virtual_sdcard: Remove trailing '*' checksum indicator from M23 command
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
82a65e9f4a
commit
fc60bda4d1
|
@ -59,6 +59,8 @@ class VirtualSD:
|
|||
try:
|
||||
orig = params['#original']
|
||||
filename = orig[orig.find("M23") + 4:].split()[0].strip()
|
||||
if '*' in filename:
|
||||
filename = filename[:filename.find('*')].strip()
|
||||
except:
|
||||
raise self.gcode.error("Unable to extract filename")
|
||||
if filename.startswith('/'):
|
||||
|
|
Loading…
Reference in New Issue