Change how we wait for a scan to finish.
This commit is contained in:
parent
3be7104f64
commit
e9472c2ad3
1 changed files with 9 additions and 9 deletions
|
|
@ -64,18 +64,18 @@ def capture(prg):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
wait_for_finger()
|
wait_for_finger()
|
||||||
wait_till_finished()
|
#wait_till_finished()
|
||||||
|
|
||||||
|
while True:
|
||||||
|
b=usb.wait_int()
|
||||||
|
if b[0] != 3:
|
||||||
|
raise Exception('Unexpected interrupt type %s' % hexlify(b).decode())
|
||||||
|
|
||||||
|
if b[2] & 4:
|
||||||
|
break
|
||||||
finally:
|
finally:
|
||||||
res=stop_prg()
|
res=stop_prg()
|
||||||
|
|
||||||
while True:
|
|
||||||
b=usb.wait_int()
|
|
||||||
if b[0] != 3:
|
|
||||||
raise Exception('Unexpected interrupt type %s' % hexlify(b).decode())
|
|
||||||
|
|
||||||
if b[1] == 0x43:
|
|
||||||
break
|
|
||||||
|
|
||||||
assert_status(res)
|
assert_status(res)
|
||||||
res = res[2:]
|
res = res[2:]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue