printcore - send the initial M105 using _send instead of send_now

send_now can't be used until the printer is online.
master
Andrew Dalgleish 2012-06-29 13:44:20 +10:00
parent 0ae7e1fee4
commit 1a6700296a
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ class printcore():
"""
self.clear=True
time.sleep(1.0)
self.send_now("M105")
if (not self.online and not self.printing):
self._send("M105")
while(True):
if(not self.printer or not self.printer.isOpen):
break