1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

bootloader: fix typo in message processing

This commit is contained in:
Pavol Rusnak 2017-06-20 15:06:16 +02:00
parent ce6dca8ed5
commit 95bc321113
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -146,7 +146,7 @@ static bool _usb_read(pb_istream_t *stream, uint8_t *buf, size_t count)
memcpy(buf + read, state->buf + state->packet_pos, USB_PACKET_SIZE - state->packet_pos);
read += USB_PACKET_SIZE - state->packet_pos;
// read next packet
usb_hid_write_blocking(state->iface_num, state->buf, USB_PACKET_SIZE, 1);
usb_hid_read_blocking(state->iface_num, state->buf, USB_PACKET_SIZE, 100);
// prepare next packet
state->packet_index++;
state->packet_pos = MSG_HEADER2_LEN;