From 47aea82ade67c714aa73dc31020bc0507d78a299 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sun, 12 Aug 2012 18:20:42 +0200 Subject: [PATCH] pronsole.py: repeat manual commands only in non-verbose mode. In verbose mode (self.p.loud = True), the code actually sending the G-code line prints this, too, so this was a duplicate. --- pronsole.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pronsole.py b/pronsole.py index 2d2b557..042b002 100755 --- a/pronsole.py +++ b/pronsole.py @@ -874,14 +874,16 @@ class pronsole(cmd.Cmd): def default(self,l): if(l[0] in self.commandprefixes.upper()): if(self.p and self.p.online): - print "SENDING:"+l + if(not self.p.loud): + print "SENDING:"+l self.p.send_now(l) else: print "Printer is not online." return elif(l[0] in self.commandprefixes.lower()): if(self.p and self.p.online): - print "SENDING:"+l.upper() + if(not self.p.loud): + print "SENDING:"+l.upper() self.p.send_now(l.upper()) else: print "Printer is not online."