Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projector fix, race condition fix #1148

Merged
merged 3 commits into from
Jan 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion printrun/printcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,12 @@ def startprint(self, gcode, startindex = 0):
self.printing = True
self.lineno = 0
self.resendfrom = -1
self._send("M110", -1, True)
if not gcode or not gcode.lines:
return True

self.clear = False
self._send("M110", -1, True)

resuming = (startindex != 0)
self.print_thread = threading.Thread(target = self._print,
name = 'print thread',
Expand Down
Loading