From 1b19af325a53791f7a3005b7a9be2c64bdc1ec5a Mon Sep 17 00:00:00 2001 From: cnlohr <lohr85@gmail.com> Date: Sun, 12 Mar 2023 23:21:53 -0400 Subject: [PATCH] Adjust timeout to reduce risk of missed start. --- ch32v003fun/ch32v003fun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch32v003fun/ch32v003fun.c b/ch32v003fun/ch32v003fun.c index 3cc57c3..c1d3dc2 100644 --- a/ch32v003fun/ch32v003fun.c +++ b/ch32v003fun/ch32v003fun.c @@ -856,7 +856,7 @@ int _write(int fd, const char *buf, int size) char buffer[4] = { 0 }; int place = 0; - uint32_t timeout = 80000; // Give up after ~20ms + uint32_t timeout = 160000; // Give up after ~40ms while( place < size ) { int tosend = size - place; -- GitLab