From 5f2105680f8f0eb15c9ce041c36dcf34c632c02c Mon Sep 17 00:00:00 2001 From: ole00 Date: Fri, 2 Feb 2024 22:50:46 +0000 Subject: [PATCH] PC app: increase maximum wait time for operations This fixes reading erased ATF750C when using sparse fusemap. --- src_pc/afterburner.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src_pc/afterburner.c b/src_pc/afterburner.c index 734e8ff..2eb47ce 100644 --- a/src_pc/afterburner.c +++ b/src_pc/afterburner.c @@ -921,7 +921,7 @@ static char operationWriteOrVerify(char doWrite) { // write command if (doWrite) { - result = sendGenericCommand("w\r", "write failed ?", 6000, 0); + result = sendGenericCommand("w\r", "write failed ?", 8000, 0); if (result) { goto finish; } @@ -929,7 +929,7 @@ static char operationWriteOrVerify(char doWrite) { // verify command if (opVerify) { - result = sendGenericCommand("v\r", "verify failed ?", 6000, 0); + result = sendGenericCommand("v\r", "verify failed ?", 8000, 0); } finish: closeSerial(); @@ -1166,7 +1166,7 @@ static char operationReadFuses(void) { //READ_FUSE command sprintf(buf, "r\r"); - readSize = sendLine(buf, GALBUFSIZE, 8000); + readSize = sendLine(buf, GALBUFSIZE, 12000); if (readSize < 0) { return -1; }