apps.fido_u2f: workaround for sync send problems

This commit is contained in:
Jan Pochyla 2017-05-31 19:27:47 +02:00
parent a865c94339
commit 7783763e92
1 changed files with 1 additions and 0 deletions

View File

@ -301,6 +301,7 @@ def send_cmd(cmd: Cmd, iface: int):
while offset < datalen:
frm.seq = seq
offset += utils.memcpy(frm.data, 0, cmd.data, offset, datalen)
utime.sleep_ms(1) # FIXME: do async send
msg.send(iface, buf)
# log.debug(__name__, 'send cont %s', buf)
seq += 1