virtual_sdcard: Remove trailing '*' checksum indicator from M23 command
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -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('/'):
|
||||
|
||||
Reference in New Issue
Block a user