From 1a6700296a8cd8f78c50b6a3caaa05a7b67973fb Mon Sep 17 00:00:00 2001 From: Andrew Dalgleish Date: Fri, 29 Jun 2012 13:44:20 +1000 Subject: [PATCH] printcore - send the initial M105 using _send instead of send_now send_now can't be used until the printer is online. --- printcore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/printcore.py b/printcore.py index 7d95e55..f98ac67 100755 --- a/printcore.py +++ b/printcore.py @@ -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