Commit dbf8ea3b authored by Guillaume Seguin's avatar Guillaume Seguin

Remove pronterface-related integration in printcore

parent 7f1e4b13
......@@ -107,7 +107,6 @@ class printcore():
self.connect(port, baud)
self.xy_feedrate = None
self.z_feedrate = None
self.pronterface = None
def logError(self, error):
if self.errorcb:
......@@ -496,13 +495,10 @@ class printcore():
self.print_thread = None
self._start_sender()
#now only "pause" is implemented as host command
def processHostCommand(self, command):
def process_host_command(self, command):
"""only ;@pause command is implemented as a host command in printcore, but hosts are free to reimplement this method"""
command = command.lstrip()
if command.startswith(";@pause"):
if self.pronterface is not None:
self.pronterface.pause(None)
else:
self.pause()
def _sendnext(self):
......@@ -546,7 +542,7 @@ class printcore():
return
tline = gline.raw
if tline.lstrip().startswith(";@"): # check for host command
self.processHostCommand(tline)
self.process_host_command(tline)
self.queueindex += 1
self.clear = True
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