Skip to content

Commit 769d5a3

Browse files
committed
Made boot_serial_start yield to allow the usb connection to be established and transfer data
1 parent 3ea42d2 commit 769d5a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

boot/boot_serial/src/boot_serial.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ boot_serial_start(const struct boot_uart_funcs *f)
626626
while (1) {
627627
rc = f->read(in_buf + off, sizeof(in_buf) - off, &full_line);
628628
if (rc <= 0 && !full_line) {
629+
k_yield();
629630
continue;
630631
}
631632
off += rc;

0 commit comments

Comments
 (0)