We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94167d6 commit 7cdeb52Copy full SHA for 7cdeb52
bootloaders/uart/uart_boot.c
@@ -210,6 +210,7 @@ int main()
210
ptr = memchr(buf, hello[0], sizeof(buf));
211
if (ptr && strncmp(ptr, hello, sizeof(hello) - 1) == 0) {
212
printf("Device is running\n");
213
+ attempts = 0;
214
} else {
215
if (attempts > 3) {
216
printf("Device not running - attempting reset\n");
0 commit comments