mod_term added send_raw with _ prefix

This commit is contained in:
shrlnm 2019-09-07 09:14:54 +03:00
parent 3c597deee1
commit aae01f6ac5
2 changed files with 12 additions and 2 deletions

View File

@ -727,7 +727,7 @@ class ScanEcus:
if len(row['stopDiagReq'])>0:
self.elm.cmd(row['stopDiagReq']) #close session
res = ""
for s in rrsp.split('\n'):
dss = s.replace(' ','')

View File

@ -226,6 +226,12 @@ def optParser():
default=False,
action="store_true")
parser.add_argument("--verbose",
help="show verbose output (unused)",
dest="verb",
default=False,
action="store_true")
parser.add_argument("--dialog",
help="show dialog for selecting macro",
dest="dia",
@ -610,7 +616,11 @@ def proc_line( l, elm ):
bit_cmd( l.lower()[7:], elm, fnc='exit_if' )
return
print elm.cmd(l)
if l.lower().startswith('_'):
print elm.send_raw(l[1:])
else:
print elm.cmd(l)
if cmd_delay>0:
print '# delay:', cmd_delay