From 95bc321113c2dc0d217919336b4f9d5a650ded56 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 20 Jun 2017 15:06:16 +0200 Subject: [PATCH] bootloader: fix typo in message processing --- micropython/bootloader/messages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micropython/bootloader/messages.c b/micropython/bootloader/messages.c index 1cad1cebf6..9c8f9bf3a7 100644 --- a/micropython/bootloader/messages.c +++ b/micropython/bootloader/messages.c @@ -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;