9p fix#17
This commit is contained in:
parent
a2d48215f1
commit
7d36a38024
@ -468,14 +468,20 @@ def bit_cmd( l, elm, fnc='set_bits' ):
|
|||||||
|
|
||||||
if len(rsp) != lng * 2:
|
if len(rsp) != lng * 2:
|
||||||
print '\nERROR: Length is unexpected\n'
|
print '\nERROR: Length is unexpected\n'
|
||||||
|
if fnc.startswith('exit'):
|
||||||
|
sys.exit()
|
||||||
return
|
return
|
||||||
|
|
||||||
if not all(c in string.hexdigits for c in rsp):
|
if not all(c in string.hexdigits for c in rsp):
|
||||||
|
if fnc.startswith('exit'):
|
||||||
|
sys.exit()
|
||||||
print '\nERROR: Wrong simbol in response\n'
|
print '\nERROR: Wrong simbol in response\n'
|
||||||
return
|
return
|
||||||
|
|
||||||
pos_rsp = ('6'+rcmd[1:]).upper()
|
pos_rsp = ('6'+rcmd[1:]).upper()
|
||||||
if not rsp.startswith(pos_rsp):
|
if not rsp.startswith(pos_rsp):
|
||||||
|
if fnc.startswith('exit'):
|
||||||
|
sys.exit()
|
||||||
print '\nERROR: Not positive response\n'
|
print '\nERROR: Not positive response\n'
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -640,6 +646,9 @@ def main():
|
|||||||
cmd_lines = []
|
cmd_lines = []
|
||||||
cmd_ref = 0
|
cmd_ref = 0
|
||||||
|
|
||||||
|
#debug
|
||||||
|
#auto_dia = True
|
||||||
|
|
||||||
if auto_dia:
|
if auto_dia:
|
||||||
fname = FileChooser().choose()
|
fname = FileChooser().choose()
|
||||||
#debug
|
#debug
|
||||||
|
Loading…
x
Reference in New Issue
Block a user