Commit dbf8ea3b authored by Guillaume Seguin's avatar Guillaume Seguin

Remove pronterface-related integration in printcore

parent 7f1e4b13
...@@ -107,7 +107,6 @@ class printcore(): ...@@ -107,7 +107,6 @@ class printcore():
self.connect(port, baud) self.connect(port, baud)
self.xy_feedrate = None self.xy_feedrate = None
self.z_feedrate = None self.z_feedrate = None
self.pronterface = None
def logError(self, error): def logError(self, error):
if self.errorcb: if self.errorcb:
...@@ -496,14 +495,11 @@ class printcore(): ...@@ -496,14 +495,11 @@ class printcore():
self.print_thread = None self.print_thread = None
self._start_sender() self._start_sender()
#now only "pause" is implemented as host command def process_host_command(self, command):
def processHostCommand(self, command): """only ;@pause command is implemented as a host command in printcore, but hosts are free to reimplement this method"""
command = command.lstrip() command = command.lstrip()
if command.startswith(";@pause"): if command.startswith(";@pause"):
if self.pronterface is not None: self.pause()
self.pronterface.pause(None)
else:
self.pause()
def _sendnext(self): def _sendnext(self):
if not self.printer: if not self.printer:
...@@ -546,7 +542,7 @@ class printcore(): ...@@ -546,7 +542,7 @@ class printcore():
return return
tline = gline.raw tline = gline.raw
if tline.lstrip().startswith(";@"): # check for host command if tline.lstrip().startswith(";@"): # check for host command
self.processHostCommand(tline) self.process_host_command(tline)
self.queueindex += 1 self.queueindex += 1
self.clear = True self.clear = True
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment