fix(core/bootloader): fix retries when reading from USB

pull/2903/head
tychovrahe 1 year ago committed by TychoVrahe
parent 4d0381055c
commit 3f54b84aef

@ -0,0 +1 @@
Fixed retries counter when reading from USB

@ -198,6 +198,7 @@ static void _usb_webusb_read_retry(uint8_t iface_num, uint8_t *buf) {
if (r != USB_PACKET_SIZE) { // reading failed
if (r == 0 && retry < 10) {
// only timeout => let's try again
continue;
} else {
// error
error_shutdown("USB ERROR",

Loading…
Cancel
Save