From 443072e4237c1b2de61a7f570ac6e401b0310c22 Mon Sep 17 00:00:00 2001 From: ole00 Date: Fri, 1 Apr 2022 17:48:20 +0100 Subject: [PATCH] pc app: fixed detection of serial prompt --- src_pc/afterburner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src_pc/afterburner.c b/src_pc/afterburner.c index 8624735..d2df72f 100644 --- a/src_pc/afterburner.c +++ b/src_pc/afterburner.c @@ -51,7 +51,7 @@ To compile: gcc -g3 -O0 afterburner afterburner.c #include "serial_port.h" -#define VERSION "v.0.3" +#define VERSION "v.0.3.1" #define MAX_LINE 200 @@ -589,7 +589,7 @@ static int waitForSerialPrompt(char* buf, int bufSize, int maxDelay) { if (readSize > 0) { bufPos += readSize; if (checkPromptExists(bufStart, bufTotal) >= 0) { - maxDelay = 0; //force exit + maxDelay = 4; //force exit, but read the rest of the line } else { buf += readSize; bufSize -= readSize;