PC app: fix prompt detection.

It should improve detection of Afterburner presence during start.
This commit is contained in:
ole00 2023-10-14 21:15:39 +01:00
parent 6beae4de9c
commit b498bc73f3
1 changed files with 2 additions and 2 deletions

View File

@ -609,8 +609,8 @@ static void closeSerial(void) {
static int checkPromptExists(char* buf, int bufSize) {
int i;
for (i = 0; i < bufSize && buf[i] != 0; i++) {
if (buf[i] == '>') {
for (i = 0; i < bufSize - 2 && buf[i] != 0; i++) {
if (buf[i] == '>' && buf[i+1] == '\r' && buf[i+2] == '\n') {
return i;
}
}