Commit 47aea82a authored by Markus Hitter's avatar Markus Hitter

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.
parent 4d612f21
...@@ -874,6 +874,7 @@ class pronsole(cmd.Cmd): ...@@ -874,6 +874,7 @@ class pronsole(cmd.Cmd):
def default(self,l): def default(self,l):
if(l[0] in self.commandprefixes.upper()): if(l[0] in self.commandprefixes.upper()):
if(self.p and self.p.online): if(self.p and self.p.online):
if(not self.p.loud):
print "SENDING:"+l print "SENDING:"+l
self.p.send_now(l) self.p.send_now(l)
else: else:
...@@ -881,6 +882,7 @@ class pronsole(cmd.Cmd): ...@@ -881,6 +882,7 @@ class pronsole(cmd.Cmd):
return return
elif(l[0] in self.commandprefixes.lower()): elif(l[0] in self.commandprefixes.lower()):
if(self.p and self.p.online): if(self.p and self.p.online):
if(not self.p.loud):
print "SENDING:"+l.upper() print "SENDING:"+l.upper()
self.p.send_now(l.upper()) self.p.send_now(l.upper())
else: else:
......
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