mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-25 17:09:44 +00:00
apps.fido_u2f: workaround for sync send problems
This commit is contained in:
parent
a865c94339
commit
7783763e92
@ -301,6 +301,7 @@ def send_cmd(cmd: Cmd, iface: int):
|
|||||||
while offset < datalen:
|
while offset < datalen:
|
||||||
frm.seq = seq
|
frm.seq = seq
|
||||||
offset += utils.memcpy(frm.data, 0, cmd.data, offset, datalen)
|
offset += utils.memcpy(frm.data, 0, cmd.data, offset, datalen)
|
||||||
|
utime.sleep_ms(1) # FIXME: do async send
|
||||||
msg.send(iface, buf)
|
msg.send(iface, buf)
|
||||||
# log.debug(__name__, 'send cont %s', buf)
|
# log.debug(__name__, 'send cont %s', buf)
|
||||||
seq += 1
|
seq += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user