✨ Reset line numbers before all jobs

This commit is contained in:
Gina Häußge committed 2019-05-16 17:40:12 +02:00
1 parent f41dc58d97
commit e63161ae17
1 file changed
+4
@@ -826,6 +826,10 @@ class ReprapGcodeProtocol(Protocol, ThreeDPrinterProtocolMixin, MotorControlProt
run_first=True)
self._temperature_poller.start()
def _on_switched_state_starting(self, old_state):
# reset line numbers every time we start a new print job
self.send_commands(self.flavor.command_set_line(0))
def _on_switched_state_disconnecting(self, old_state):
self._handle_disconnecting(old_state, False)