Enable manual commands of any format to be passed through if prefixed by @
parent
06e3a02d4f
commit
98bdb2b108
|
@ -853,6 +853,14 @@ class pronsole(cmd.Cmd):
|
|||
else:
|
||||
self.log("printer is not online.")
|
||||
return
|
||||
elif(l[0] == "@"):
|
||||
if(self.p and self.p.online):
|
||||
if(not self.p.loud):
|
||||
self.log("SENDING:"+l[1:])
|
||||
self.p.send_now(l[1:])
|
||||
else:
|
||||
self.log("printer is not online.")
|
||||
return
|
||||
else:
|
||||
cmd.Cmd.default(self, l)
|
||||
|
||||
|
|
Loading…
Reference in New Issue