Enable T codes like T0 and T1.
parent
82aa15becc
commit
21d81f76a5
|
@ -809,14 +809,14 @@ class pronsole(cmd.Cmd):
|
||||||
print "! os.listdir('.')"
|
print "! os.listdir('.')"
|
||||||
|
|
||||||
def default(self,l):
|
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):
|
if(self.p and self.p.online):
|
||||||
print "SENDING:"+l
|
print "SENDING:"+l
|
||||||
self.p.send_now(l)
|
self.p.send_now(l)
|
||||||
else:
|
else:
|
||||||
print "Printer is not online."
|
print "Printer is not online."
|
||||||
return
|
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):
|
if(self.p and self.p.online):
|
||||||
print "SENDING:"+l.upper()
|
print "SENDING:"+l.upper()
|
||||||
self.p.send_now(l.upper())
|
self.p.send_now(l.upper())
|
||||||
|
|
Loading…
Reference in New Issue