Skip to content

Commit 7cdeb52

Browse files
committed
Allow longer delays while running too
1 parent 94167d6 commit 7cdeb52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bootloaders/uart/uart_boot.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ int main()
210210
ptr = memchr(buf, hello[0], sizeof(buf));
211211
if (ptr && strncmp(ptr, hello, sizeof(hello) - 1) == 0) {
212212
printf("Device is running\n");
213+
attempts = 0;
213214
} else {
214215
if (attempts > 3) {
215216
printf("Device not running - attempting reset\n");

0 commit comments

Comments
 (0)