virtual_sdcard: fix virtual SD file position count (#6472)
Signed-off-by: Zhang Qiwei <zxy16305@gmail.com>
This commit is contained in:
@@ -258,7 +258,7 @@ class VirtualSD:
|
||||
# Dispatch command
|
||||
self.cmd_from_sd = True
|
||||
line = lines.pop()
|
||||
next_file_position = self.file_position + len(line) + 1
|
||||
next_file_position = self.file_position + len(line.encode()) + 1
|
||||
self.next_file_position = next_file_position
|
||||
try:
|
||||
self.gcode.run_script(line)
|
||||
|
Reference in New Issue
Block a user