virtual_sdcard: fix virtual SD file position count (#6472)
Signed-off-by: Zhang Qiwei <zxy16305@gmail.com>
This commit is contained in:
parent
5e3daa6f21
commit
600e89ae8c
|
@ -258,7 +258,7 @@ class VirtualSD:
|
||||||
# Dispatch command
|
# Dispatch command
|
||||||
self.cmd_from_sd = True
|
self.cmd_from_sd = True
|
||||||
line = lines.pop()
|
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
|
self.next_file_position = next_file_position
|
||||||
try:
|
try:
|
||||||
self.gcode.run_script(line)
|
self.gcode.run_script(line)
|
||||||
|
|
Loading…
Reference in New Issue