Fixing some more merge errors
This commit is contained in:
parent
2824b967ff
commit
37950cb466
2 changed files with 5 additions and 3 deletions
|
|
@ -298,7 +298,7 @@ class VirtualPrinter():
|
|||
if not self._supportM112:
|
||||
return
|
||||
self._killed = True
|
||||
self._send("echo:EMERGENCY SHUTDOWN DETECTED. KILLED.")
|
||||
self.outgoing.put("echo:EMERGENCY SHUTDOWN DETECTED. KILLED.")
|
||||
|
||||
def _triggerResend(self, expected=None, actual=None):
|
||||
with self._incoming_lock:
|
||||
|
|
@ -677,7 +677,6 @@ class VirtualPrinter():
|
|||
return
|
||||
|
||||
if "M112" in data and self._supportM112:
|
||||
self._seriallog.info("<<< {}".format(data.strip()))
|
||||
self._kill()
|
||||
return
|
||||
|
||||
|
|
@ -704,6 +703,9 @@ class VirtualPrinter():
|
|||
self.buffered = None
|
||||
|
||||
def _sendOk(self):
|
||||
if self.outgoing is None:
|
||||
return
|
||||
|
||||
if settings().getBoolean(["devel", "virtualPrinter", "okWithLinenumber"]):
|
||||
self.outgoing.put("ok %d" % self.lastN)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -1778,7 +1778,7 @@ class MachineCom(object):
|
|||
# close to reset host state
|
||||
self._errorValue = "Closing serial port due to emergency stop M112."
|
||||
self._log(self._errorValue)
|
||||
self.close(is_error=True)
|
||||
self.close(isError=True)
|
||||
|
||||
# fire the M112 event since we sent it and we're going to prevent the caller from seeing it
|
||||
gcode = "M112"
|
||||
|
|
|
|||
Loading…
Reference in a new issue