Commit d704bba3 authored by kliment's avatar kliment

Merge pull request #100 from ErikZalm/master

Small change to enable T0 and T1 commands.
parents 82aa15be 21d81f76
......@@ -809,14 +809,14 @@ class pronsole(cmd.Cmd):
print "! os.listdir('.')"
def default(self,l):
if(l[0]=='M' or l[0]=="G"):
if(l[0]=='M' or l[0]=="G" or l[0]=='T'):
if(self.p and self.p.online):
print "SENDING:"+l
self.p.send_now(l)
else:
print "Printer is not online."
return
if(l[0]=='m' or l[0]=="g"):
if(l[0]=='m' or l[0]=="g" or l[0]=='t'):
if(self.p and self.p.online):
print "SENDING:"+l.upper()
self.p.send_now(l.upper())
......
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